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.5.0 to 2.6.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.6.0</h2> <!-- raw HTML omitted --> <pre><code>No known vulnerabilities found </code></pre> <!-- raw HTML omitted --> <h2>[2.6.0]</h2> <h3>New Features</h3> <ul> <li><a href="50ebddaa2d"><code>50ebddaa2</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13319">#13319</a> by <a href="https://www.github.com/tauri-apps/tauri/../../kingsword09"><code>@kingsword09</code></a>) Expose the <code>setAutoResize</code> API for webviews in <code>@tauri-apps/api</code>.</li> <li><a href="267368fd4f"><code>267368fd4</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13276">#13276</a> by <a href="https://www.github.com/tauri-apps/tauri/../../amrbashir"><code>@amrbashir</code></a>) Add <code>Monitor.workArea</code> field.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="23b9da75b9"><code>23b9da75b</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13324">#13324</a> by <a href="https://www.github.com/tauri-apps/tauri/../../kingsword09"><code>@kingsword09</code></a>) Fixed path joining behavior where <code>path.join('', 'a')</code> incorrectly returns "/a" instead of "a".</li> <li><a href="b985eaf0a2"><code>b985eaf0a</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13306">#13306</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Immediately unregister event listener when the unlisten function is called.</li> </ul> <h3>What's Changed</h3> <ul> <li><a href="b5c549d189"><code>b5c549d18</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13325">#13325</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Legend-Master"><code>@Legend-Master</code></a>) <code>transformCallback</code> now registers the callbacks inside <code>window.__TAURI_INTERNALS__.callbacks</code> instead of directly on <code>window['_{id}']</code></li> </ul> <!-- raw HTML omitted --> <pre><code>> @tauri-apps/api@2.6.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>.6.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.7s[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.8s[22m[39m npm verbose cli /opt/hostedtoolcache/node/20.19.2/x64/bin/node /opt/hostedtoolcache/node/20.19.2/x64/bin/npm npm info using npm@10.8.2 npm info using node@v20.19.2 npm silly config load:file:/opt/hostedtoolcache/node/20.19.2/x64/lib/node_modules/npm/npmrc npm silly config load:file:/tmp/2b52e4eba4f2f6fee26c87fa0c50d004/.npmrc npm silly config load:file:/home/runner/work/_temp/.npmrc npm silly config load:file:/opt/hostedtoolcache/node/20.19.2/x64/etc/npmrc </tr></table> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="594822aa55"><code>594822a</code></a> Apply Version Updates From Current Changes (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13282">#13282</a>)</li> <li><a href="e4aa35e083"><code>e4aa35e</code></a> fix(cli): init tests</li> <li><a href="9c16eefa31"><code>9c16eef</code></a> Update kuchikiki, html5ever, tao, wry, webview2-com (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13629">#13629</a>)</li> <li><a href="3242e1c946"><code>3242e1c</code></a> feat(cli): allow passing Cargo commands to mobile dev/build commands (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13659">#13659</a>)</li> <li><a href="4a880ca697"><code>4a880ca</code></a> feat(cli): synchronize productName changes with iOS Xcode project (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13658">#13658</a>)</li> <li><a href="d1ce9af628"><code>d1ce9af</code></a> feat(cli): add <code>--config</code> arg to the mobile init cmds, closes <a href="https://redirect.github.com/tauri-apps/tauri/issues/13284">#13284</a> (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13660">#13660</a>)</li> <li><a href="ec6065fa4a"><code>ec6065f</code></a> fix(cli): use original identifier to fix mobile options reading (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13625">#13625</a>)</li> <li><a href="18b5299952"><code>18b5299</code></a> docs: where does resource dir resolve to (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13640">#13640</a>)</li> <li><a href="eb3f0248c2"><code>eb3f024</code></a> fix: write default permission words if not empty (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13646">#13646</a>)</li> <li><a href="c03cc586e3"><code>c03cc58</code></a> chore: check generated file on package lock change (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13641">#13641</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/api-v2.5.0...@tauri-apps/api-v2.6.0">compare view</a></li> </ul> </details> <br /> Updates `@tauri-apps/cli` from 2.5.0 to 2.6.2 <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.6.2</h2> <h2>[2.6.2]</h2> <h3>Bug Fixes</h3> <ul> <li><a href="cbd9629729"><code>cbd962972</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13730">#13730</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Load <code>--config</code> arguments when running the Xcode and Android Studio build scripts.</li> </ul> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.6.2</code></li> </ul> <h2><code>@tauri-apps/cli</code> v2.6.1</h2> <h2>[2.6.1]</h2> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.6.1</code></li> </ul> <h2><code>@tauri-apps/cli</code> v2.6.0</h2> <h2>[2.6.0]</h2> <h3>New Features</h3> <ul> <li><a href="414619c36e"><code>414619c36</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13536">#13536</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Tunglies"><code>@Tunglies</code></a>) Added support for the <code>bundleName</code> property in the macOS bundler configuration. This allows specifying the <code>CFBundleName</code> value for generated macOS bundles.</li> <li><a href="3242e1c946"><code>3242e1c94</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13659">#13659</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Allow passing Cargo arguments to mobile dev and build commands.</li> <li><a href="d1ce9af628"><code>d1ce9af62</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13660">#13660</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Allow passing <code>--config</code> arguments to the <code>ios init</code> and <code>android init</code> commands to tweak the configuration used to initialize the mobile projects.</li> <li><a href="7322f05792"><code>7322f0579</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13502">#13502</a> by <a href="https://www.github.com/tauri-apps/tauri/../../amrbashir"><code>@amrbashir</code></a>) Allow using <code>CheckIfAppIsRunning</code> macro inside NSIS hooks, for example <code>!insertmacro CheckIfAppIsRunning "another-executable.exe" "Another Executable"</code>.</li> <li><a href="4a880ca697"><code>4a880ca69</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13658">#13658</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Synchronize Tauri config productName changes with the iOS Xcode project.</li> <li><a href="8ee14a8648"><code>8ee14a864</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13618">#13618</a> by <a href="https://www.github.com/tauri-apps/tauri/../../Sky-walkerX"><code>@Sky-walkerX</code></a>) Warn the user that the app id shouldn't end in <code>.app</code> because it conflicts with the application bundle extension on macOS</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href="35aa7e1218"><code>35aa7e121</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13294">#13294</a> by <a href="https://www.github.com/tauri-apps/tauri/../../kingsword09"><code>@kingsword09</code></a>) fix: allow the target directory to be inside frontendDir as long as it is not the Rust target directory inside frontendDir.</li> <li><a href="ec6065fa4a"><code>ec6065fa4</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13625">#13625</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Fixes Android and iOS dev/build commands not working when the app identifier is being modified by the <code>--config</code> option.</li> <li><a href="5a5291d66c"><code>5a5291d66</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13483">#13483</a> by <a href="https://www.github.com/tauri-apps/tauri/../../lucasfernog"><code>@lucasfernog</code></a>) Fix simulator build detection on Xcode.</li> </ul> <h3>Dependencies</h3> <ul> <li>Upgraded to <code>tauri-cli@2.6.0</code></li> <li><a href="9c16eefa31"><code>9c16eefa3</code></a> (<a href="https://redirect.github.com/tauri-apps/tauri/pull/13629">#13629</a> by <a href="https://www.github.com/tauri-apps/tauri/../../sftse"><code>@sftse</code></a>) Update html5ever to 0.29 and kuchikiki to version 0.8.8-speedreader.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="0277596341"><code>0277596</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13731">#13731</a>)</li> <li><a href="cbd9629729"><code>cbd9629</code></a> fix(cli): load --config values on xcode and android-studio scripts (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13730">#13730</a>)</li> <li><a href="0079d08ba9"><code>0079d08</code></a> chore(worker): Enable observability</li> <li><a href="effd106adf"><code>effd106</code></a> fix(worker): Fix route syntax</li> <li><a href="4053ad1b58"><code>4053ad1</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13724">#13724</a>)</li> <li><a href="f010ca5e91"><code>f010ca5</code></a> fix(core): compile error without common-controls-v6 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13719">#13719</a>)</li> <li><a href="6b2b9d6cbf"><code>6b2b9d6</code></a> chore: clippy 1.88 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13720">#13720</a>)</li> <li><a href="b6de1c89c2"><code>b6de1c8</code></a> chore(deps): update rust crate md5 to 0.8 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13712">#13712</a>)</li> <li><a href="a3ae2cebbf"><code>a3ae2ce</code></a> chore(deps): update rust crate rand to 0.9 (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13700">#13700</a>)</li> <li><a href="a3f11b4f3b"><code>a3f11b4</code></a> apply version updates (<a href="https://redirect.github.com/tauri-apps/tauri/issues/13693">#13693</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tauri-apps/tauri/compare/@tauri-apps/cli-v2.5.0...@tauri-apps/cli-v2.6.2">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