Bumps the tauri group in /rust/gui-client with 2 updates: [@tauri-apps/api](https://github.com/tauri-apps/tauri) and [@tauri-apps/cli](https://github.com/tauri-apps/tauri). Updates `@tauri-apps/api` from 2.3.0 to 2.4.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tauri-apps/tauri/releases"><code>@tauri-apps/api</code>'s releases</a>.</em></p> <blockquote> <h2><code>@tauri-apps/api</code> v2.4.0</h2> <!-- raw HTML omitted --> <pre><code>No known vulnerabilities found </code></pre> <!-- raw HTML omitted --> <h2>[2.4.0]</h2> <h3>New Features</h3> <ul> <li><a href="d8059bad3c"><code>d8059bad3</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12900">#12900</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Simon-Laux"><code>@Simon-Laux</code></a>) add <code>AppHandle.fetch_data_store_identifiers</code> and <code>AppHandle.remove_data_store</code> (macOS and iOS only)</li> <li><a href="20c1906912"><code>20c190691</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12821">#12821</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Simon-Laux"><code>@Simon-Laux</code></a>) Added <code>WindowOptions::javascriptDisabled</code> and <code>WebviewOptions::javascriptDisabled</code>.</li> <li><a href="060de5bbdd"><code>060de5bbd</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12837">#12837</a> by <a href="https://www.github.com/tauri-apps/tauri/../../niladrix719"><code>@niladrix719</code></a>) Added <code>getIdentifier()</code> function to get the application identifier configured in tauri.conf.json</li> <li><a href="be2e6b85fe"><code>be2e6b85f</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12944">#12944</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Simon-Laux"><code>@Simon-Laux</code></a>) Added <code>Window#isAlwaysOnTop</code> and <code>WebviewWindow#isAlwaysOnTop</code> methods.</li> <li><a href="bcdd510254"><code>bcdd51025</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13012">#13012</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) The <code>path</code> basename and extname APIs now accept Android content URIs, such as the paths returned by the dialog plugin.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="3a74dc8f34"><code>3a74dc8f3</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12935">#12935</a> by <a href="https://www.github.com/tauri-apps/tauri/../../tk103331"><code>@tk103331</code></a>) Fix <code>Webview.close</code> always fail with command not found</li> </ul> <!-- raw HTML omitted --> <pre><code>> @tauri-apps/api@2.4.0 npm-publish /home/runner/work/tauri/tauri/packages/api > pnpm build && cd ./dist && pnpm publish --access public --loglevel silly --no-git-checks <p>> <code>@tauri-apps/api</code><a href="https://github.com/2"><code>@2</code></a>.4.0 build /home/runner/work/tauri/tauri/packages/api > rollup -c --configPlugin typescript</p> <p>[36m [1m./src/app.ts, ./src/core.ts, ./src/dpi.ts, ./src/event.ts, ./src/image.ts, ./src/index.ts, ./src/menu.ts, ./src/mocks.ts, ./src/path.ts, ./src/tray.ts, ./src/webview.ts, ./src/webviewWindow.ts, ./src/window.ts[22m → [1m./dist, ./dist[22m...[39m [32mcreated [1m./dist, ./dist[22m in [1m1.5s[22m[39m [36m [1msrc/index.ts[22m → [1m../../crates/tauri/scripts/bundle.global.js[22m...[39m [32mcreated [1m../../crates/tauri/scripts/bundle.global.js[22m in [1m1.9s[22m[39m npm verbose cli /opt/hostedtoolcache/node/20.19.0/x64/bin/node /opt/hostedtoolcache/node/20.19.0/x64/bin/npm npm info using npm@10.8.2 npm info using node@v20.19.0 npm silly config load:file:/opt/hostedtoolcache/node/20.19.0/x64/lib/node_modules/npm/npmrc npm silly config load:file:/tmp/72821e3a5f1577c84d7d9498bee4667c/.npmrc npm silly config load:file:/home/runner/work/_temp/.npmrc npm silly config load:file:/opt/hostedtoolcache/node/20.19.0/x64/etc/npmrc npm verbose title npm publish tauri-apps-api-2.4.0.tgz npm verbose argv "publish" "--ignore-scripts" "tauri-apps-api-2.4.0.tgz" "--access" "public" "--loglevel" "silly" "--no-git-checks" </tr></table> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="be3a79c864"><code>be3a79c</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12856">#12856</a>)</li> <li><a href="ba42a1f553"><code>ba42a1f</code></a> chore: pin tao and wry to latest patch versions</li> <li><a href="1cd8f55eed"><code>1cd8f55</code></a> fix: don't ship global api bundle if withGlobalTauri is false (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13033">#13033</a>)</li> <li><a href="8603e42a6b"><code>8603e42</code></a> fix: channel no longer being always allowed (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13032">#13032</a>)</li> <li><a href="c32bd722d3"><code>c32bd72</code></a> prettify: Remove beta tag and alert users that tauri for android currently do...</li> <li><a href="bcdd510254"><code>bcdd510</code></a> feat(core): resolve file names from Android content URIs (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13012">#13012</a>)</li> <li><a href="71cb1e26d7"><code>71cb1e2</code></a> docs: update <code>.disable_javascript()</code> docs (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13013">#13013</a>)</li> <li><a href="b459f1d405"><code>b459f1d</code></a> docs: improve Capability docs: mention webviews (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13015">#13015</a>)</li> <li><a href="8cc0067165"><code>8cc0067</code></a> chore(deps): bump zip from 2.2.2 to 2.3.0 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13016">#13016</a>)</li> <li><a href="f2c94aaca0"><code>f2c94aa</code></a> feat(core): add startIntentSenderForResult Android API for plugins (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12682">#12682</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/api-v2.3.0...@tauri-apps/api-v2.4.0">compare view</a></li> </ul> </details> <br /> Updates `@tauri-apps/cli` from 2.3.1 to 2.4.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tauri-apps/tauri/releases"><code>@tauri-apps/cli</code>'s releases</a>.</em></p> <blockquote> <h2><code>@tauri-apps/cli</code> v2.4.0</h2> <h2>[2.4.0]</h2> <h3>New Features</h3> <ul> <li><a href="d91bfa5cb9"><code>d91bfa5cb</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12970">#12970</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Allow merging multiple configuration values on <code>tauri dev</code>, <code>tauri build</code>, <code>tauri bundle</code>, <code>tauri android dev</code>, <code>tauri android build</code>, <code>tauri ios dev</code> and <code>tauri ios build</code>.</li> <li><a href="30f5a1553d"><code>30f5a1553</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12366">#12366</a> by <a href="https://www.github.com/tauri-apps/tauri/../../FabianLars"><code>@FabianLars</code></a>) Added <code>trafficLightPosition</code> window configuration to set the traffic light buttons position on macOS.</li> </ul> <h3>Enhancements</h3> <ul> <li><a href="f981a5ee8b"><code>f981a5ee8</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12602">#12602</a> by <a href="https://www.github.com/tauri-apps/tauri/../../kxxt"><code>@kxxt</code></a>) Add basic support for linux riscv64 platform.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="0c4700e990"><code>0c4700e99</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12985">#12985</a> by <a href="https://www.github.com/tauri-apps/tauri/../../FabianLars"><code>@FabianLars</code></a>) The cli will now accept <code>--bundles updater</code> again. It's still no-op as it has been for all v2 versions. If you want to build updater artifacts, enable <code>createUpdaterArtifacts</code> in <code>tauri.conf.json</code>.</li> <li><a href="b83921226c"><code>b83921226</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12977">#12977</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Fix <code>tauri ios</code> commands using the wrong working directory with <code>bun@>1.2</code>.</li> <li><a href="f268b3dbdf"><code>f268b3dbd</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/12871">#12871</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Ignore parent .gitignore files on the Tauri project path detection.</li> </ul> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.4.0</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="be3a79c864"><code>be3a79c</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12856">#12856</a>)</li> <li><a href="ba42a1f553"><code>ba42a1f</code></a> chore: pin tao and wry to latest patch versions</li> <li><a href="1cd8f55eed"><code>1cd8f55</code></a> fix: don't ship global api bundle if withGlobalTauri is false (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13033">#13033</a>)</li> <li><a href="8603e42a6b"><code>8603e42</code></a> fix: channel no longer being always allowed (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13032">#13032</a>)</li> <li><a href="c32bd722d3"><code>c32bd72</code></a> prettify: Remove beta tag and alert users that tauri for android currently do...</li> <li><a href="bcdd510254"><code>bcdd510</code></a> feat(core): resolve file names from Android content URIs (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13012">#13012</a>)</li> <li><a href="71cb1e26d7"><code>71cb1e2</code></a> docs: update <code>.disable_javascript()</code> docs (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13013">#13013</a>)</li> <li><a href="b459f1d405"><code>b459f1d</code></a> docs: improve Capability docs: mention webviews (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13015">#13015</a>)</li> <li><a href="8cc0067165"><code>8cc0067</code></a> chore(deps): bump zip from 2.2.2 to 2.3.0 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13016">#13016</a>)</li> <li><a href="f2c94aaca0"><code>f2c94aa</code></a> feat(core): add startIntentSenderForResult Android API for plugins (<a href="https://redirect.github.com/tauri-apps/tauri/issues/12682">#12682</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/cli-v2.3.1...@tauri-apps/cli-v2.4.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
gui-client
This crate houses a GUI client for Linux and Windows.
Setup (Ubuntu)
To compile natively for x86_64 Linux:
- Install rustup
- Install pnpm
sudo apt-get install build-essential curl file libayatana-appindicator3-dev librsvg2-dev libssl-dev libwebkit2gtk-4.1-dev libxdo-dev wget
Setup (Windows)
To compile natively for x86_64 Windows:
- Install rustup
- Install pnpm
Recommended IDE Setup
(From Tauri's default README)
Building
Builds are best started from the frontend tool pnpm. This ensures typescript
and css is compiled properly before bundling the application.
See the package.json script for more details as to what's
going on under the hood.
# Builds a release exe
pnpm build
# Linux:
# The release exe and deb package are up in the workspace.
stat ../target/release/firezone
stat ../target/release/bundle/deb/*.deb
# Windows:
# The release exe and MSI installer should be up in the workspace.
# The exe can run without being installed
stat ../target/release/Firezone.exe
stat ../target/release/bundle/msi/Firezone_0.0.0_x64_en-US.msi
Signing the Windows MSI in GitHub CI
The MSI is signed in GitHub CI using the firezone/firezone repository's
secrets. This was originally set up using these guides for inspiration:
- https://melatonin.dev/blog/how-to-code-sign-windows-installers-with-an-ev-cert-on-github-actions/
- https://support.globalsign.com/code-signing/code-signing-using-azure-key-vault
Renewing / issuing a new code signing certificate and associated Azure entities is outside the scope of this section. Use the guides above if this needs to be done.
Instead, you'll most likely simply need to rotate the Azure CodeSigning Application's client secret.
To do so, login to the Azure portal using your @firezoneprod.onmicrosoft.com account.
Try to access it via the following deep-link.
If that doesn't work:
- Go to the
Microsoft Entra IDservice - Click on
App Registrations - Make sure the tab
All applicationsis selected - Find and navigate to the
CodeSigningapp registration - Client on
client credentials - Click
New client secret - Note down the secret value. This should be entered into the GitHub repository's secrets as
AZURE_CLIENT_SECRET.
Running
From this dir:
# This will start the frontend tools in watch mode and then run `tauri dev`
pnpm dev
# You can call debug subcommands on the exe from this directory too
# e.g. this is equivalent to `cargo run -- debug hostname`
cargo tauri dev -- -- debug hostname
# The exe is up in the workspace
stat ../target/debug/Firezone.exe
The app's config and logs will be stored at
C:\Users\$USER\AppData\Local\dev.firezone.client.
Platform support
Ubuntu 22.04 and newer is supported.
Tauri says it should work on Windows 10, Version 1803 and up. Older versions may work if you manually install WebView2
x86_64 architecture is supported for Windows. aarch64 and x86_64 are supported for Linux.
Threat model
See Security