The starter includes GitHub Actions workflows and scripts/release.mjs to compile native apps and prepare signed GitHub Releases update feeds. In local builds and in a fresh starter checkout, the updater is disabled by default. No GitHub token is bundled into the app, and browser preview cannot check, download, or apply updates.
Build artifacts
The Build native apps workflow (.github/workflows/native-build.yml) is configured to run on pull requests, manual dispatch, or when called by the release workflow. On each runner, it installs Node 26, pnpm 10.34.9, Go 1.26, and Wails CLI 3.1.0, runs pnpm install --frozen-lockfile, runs Go tests, generates bindings, builds the native frontend (frontend/dist-native), and compiles the production Go binary.
| Target |
GitHub runner |
Output artifact |
| Windows amd64 |
windows-2025 |
APP-VERSION-windows-amd64.exe |
| macOS Intel |
macos-15-intel |
APP-VERSION-darwin-amd64.zip |
| macOS Apple silicon |
macos-15 (arm64) |
APP-VERSION-darwin-arm64.zip |
| Linux amd64 |
ubuntu-24.04 |
APP-VERSION-linux-amd64.tar.gz |
Each archive holds one top-level payload—the .app bundle on macOS or the binary on Linux—matching what Wails’s updater extracts. Windows ships the executable directly. Workflow artifacts stay available for 14 days. Separately, Build site uploads apps/site/dist/ as a static artifact without deploying it.
Packaging locally
On your machine, install platform prerequisites (see the Wails 3 installation guide), run pnpm install --frozen-lockfile and pnpm run desktop:build, then package for the current OS and architecture from the repository root:
node scripts/release.mjs package windows amd64
node scripts/release.mjs package darwin arm64
node scripts/release.mjs package linux amd64
Run only the command matching the OS that built the binary. Packaged files land in ignored artifacts/native/ (use a clean directory per build). Native packaging does not bundle OS runtimes: Windows needs WebView2, macOS needs macOS 12+ (plus Xcode Command Line Tools to build), and Linux needs GTK4 and WebKitGTK 6 (build-essential, pkg-config, libgtk-4-dev, libwebkitgtk-6.0-dev to build, plus matching runtime libraries on user machines).
Version flow
apps/desktop/internal/buildinfo/version.txt holds the local development version. For a release build, pass WAILSPRING_RELEASE_VERSION=1.2.3 as the single version input. scripts/release.mjs accepts only stable MAJOR.MINOR.PATCH values with each component at most 65535 (Windows version resource limit); prerelease suffixes and build metadata are rejected.
During compilation, the helper injects WAILSPRING_RELEASE_VERSION into internal/buildinfo.ReleaseVersion via Go -ldflags so App.GetInfo() and UpdateService report the same version. It also renders release-stamped Windows resources and Info.plist into ignored apps/desktop/bin/generated/ without modifying tracked source files. Keep local development versions in build/config.yml, build/windows/info.json, and build/darwin/Info.plist aligned with version.txt (pnpm run setup does this automatically). Workspace package.json versions are independent.
When WAILSPRING_RELEASE_TAG is set, it must equal v plus WAILSPRING_RELEASE_VERSION. The release workflow verifies that the tag already exists and points at the checked-out commit; it never creates tags. Manual release runs must start from main or the tag itself.
Enable signed updates in your app
Unauthenticated update checks require a public GitHub repository. A generated app reads its repository identity from github.repository in Actions—there is no default update feed.
- Generate an Ed25519 keypair locally:
wails3 updater genkey -out /secure/location/updater.key
Store the private key outside Git and back it up. The command prints the raw 32-byte public key in base64.
- Set repository Actions variables:
WAILSPRING_UPDATE_PUBLIC_KEY: the raw 32-byte base64 public key.
WAILSPRING_UPDATES_ENABLED: true once ready to ship builds with updates enabled.
- Protect the signing key: Create a GitHub Actions environment named
release, configure reviewers or branch/tag protection rules, and store the private key’s PEM contents in environment secret WAILSPRING_UPDATE_PRIVATE_KEY. Only the final signing/draft job accesses this secret, and a key mismatch fails verification before creating a draft.
- Review permissions: Build jobs run with
contents: read, never use pull_request_target, and never receive signing secrets. Only the draft job requests contents: write. Restrict who can push v*.*.* tags.
Local release build with updates enabled
Set these environment variables before running pnpm run desktop:build (no private key is needed to compile the binary):
WAILSPRING_RELEASE_VERSION=1.2.3
WAILSPRING_RELEASE_TAG=v1.2.3
WAILSPRING_ENABLE_UPDATES=true
WAILSPRING_UPDATE_REPOSITORY=your-owner/your-app
WAILSPRING_UPDATE_PUBLIC_KEY=raw-public-key-in-base64
Omit WAILSPRING_ENABLE_UPDATES to build a downloadable binary with updates turned off. When WAILSPRING_ENABLE_UPDATES=true, missing or malformed repository/key values fail the build immediately, and Go re-validates linked settings at startup.
Prepare, review, and publish a release
- Commit and review changes, then create and push a
v1.2.3 tag (or trigger Prepare draft release manually for an existing tag).
- The workflow compiles and packages all four targets first. If public-repo opt-in, a valid public key, or the signing secret is missing, the native artifacts remain downloadable from the workflow run while the draft job stops with an explicit error—it never publishes an unsigned update feed.
- The signing job calls
wails3 updater manifest to produce latest.json with Ed25519ph signatures and SHA-512 digests, verifies every artifact against the pinned public key, checks exact versions and tagged download URLs, and writes SHA256SUMS. Temporary key files are excluded from artifacts and deleted even on failure.
- The job creates a new draft release containing all four native assets,
latest.json, and SHA256SUMS (existing releases and drafts are never overwritten).
- Review the draft, test on a disposable installation, and publish it yourself as a stable release so GitHub serves the feed at:
https://github.com/your-owner/your-app/releases/latest/download/latest.json
Before your first published release, that URL returns 404 and the updater reports no update available. Wails verifies artifact bytes against the pinned key before staging; manifest release notes and metadata are not separately signed, so treat GitHub release editing as trusted and never render release notes as HTML.
How the native updater behaves
internal/app.UpdateService exposes five methods: GetStatus, CheckForUpdates, DownloadUpdate, CancelUpdate, and RestartToUpdate. None accept a repository, URL, path, key, token, or version from the frontend. Status returns semantic fields (configuration, disabled reason, current/latest version, Wails phase, busy flag, byte progress, and localization error key) with no local paths or secrets.
- Explicit steps: Checking never downloads. Downloading verifies the Ed25519 signature and stages the payload beside the installed binary or
.app without restarting. Restarting requires a verified ready state and explicit confirmation in Settings (Restart to update → Confirm restart).
- Timeouts and cancellation: Checks time out after 45 seconds; downloads after 15 minutes (30-second HTTP request timeout). Active checks and downloads can be cancelled and cancel automatically on exit. Once restart handoff starts, Wails 3.1.0 cannot cancel it (helper readiness is bounded to 30 seconds).
- No background feed polling: The UI polls local Go status only while an update operation runs; no timer contacts GitHub in the background. After a failed download, run a fresh check before retrying. Prefer per-user writable install locations so staging beside the executable succeeds.
Signing and verification limits
- OS code signing is separate: Ed25519 update signatures authenticate bytes for the Wails updater; they do not replace Windows Authenticode or Apple Developer ID signing and notarization. macOS bundles are ad-hoc signed for local execution, and unsigned/unnotarized downloads can trigger Windows SmartScreen or macOS Gatekeeper warnings. In a shipped app, apply OS code signing and notarization before generating
latest.json, because modifying an artifact afterward invalidates its update signature.
- Keep your signing key: Changing the pinned public key later requires shipping an intermediate update signed by the original key.
- What tests cover: Run
pnpm run test:go and node --test scripts/release.test.mjs locally; set WAILSPRING_TEST_WAILS=true node --test scripts/release-cli.test.mjs to exercise an isolated Wails CLI signing/verification fixture. The GitHub Actions workflows are configured to compile and package all four targets—check your repository’s Actions tab for actual commit and tag status—but automated workflows do not verify macOS/Linux interactive runtime, native OS actions (clipboard, file dialogs, notifications), or live self-replacement. Test an actual update and restart on a disposable install on each target OS before publishing a release.
For upstream lifecycle details, see the Wails updater guide. This implementation follows Wails 3.1.0.
The starter includes GitHub Actions workflows and
scripts/release.mjsto compile native apps and prepare signed GitHub Releases update feeds. In local builds and in a fresh starter checkout, the updater is disabled by default. No GitHub token is bundled into the app, and browser preview cannot check, download, or apply updates.Build artifacts
The
Build native appsworkflow (.github/workflows/native-build.yml) is configured to run on pull requests, manual dispatch, or when called by the release workflow. On each runner, it installs Node 26, pnpm 10.34.9, Go 1.26, and Wails CLI 3.1.0, runspnpm install --frozen-lockfile, runs Go tests, generates bindings, builds the native frontend (frontend/dist-native), and compiles the production Go binary.windows-2025APP-VERSION-windows-amd64.exemacos-15-intelAPP-VERSION-darwin-amd64.zipmacos-15(arm64)APP-VERSION-darwin-arm64.zipubuntu-24.04APP-VERSION-linux-amd64.tar.gzEach archive holds one top-level payload—the
.appbundle on macOS or the binary on Linux—matching what Wails’s updater extracts. Windows ships the executable directly. Workflow artifacts stay available for 14 days. Separately,Build siteuploadsapps/site/dist/as a static artifact without deploying it.Packaging locally
On your machine, install platform prerequisites (see the Wails 3 installation guide), run
pnpm install --frozen-lockfileandpnpm run desktop:build, then package for the current OS and architecture from the repository root:Run only the command matching the OS that built the binary. Packaged files land in ignored
artifacts/native/(use a clean directory per build). Native packaging does not bundle OS runtimes: Windows needs WebView2, macOS needs macOS 12+ (plus Xcode Command Line Tools to build), and Linux needs GTK4 and WebKitGTK 6 (build-essential,pkg-config,libgtk-4-dev,libwebkitgtk-6.0-devto build, plus matching runtime libraries on user machines).Version flow
apps/desktop/internal/buildinfo/version.txtholds the local development version. For a release build, passWAILSPRING_RELEASE_VERSION=1.2.3as the single version input.scripts/release.mjsaccepts only stableMAJOR.MINOR.PATCHvalues with each component at most65535(Windows version resource limit); prerelease suffixes and build metadata are rejected.During compilation, the helper injects
WAILSPRING_RELEASE_VERSIONintointernal/buildinfo.ReleaseVersionvia Go-ldflagssoApp.GetInfo()andUpdateServicereport the same version. It also renders release-stamped Windows resources andInfo.plistinto ignoredapps/desktop/bin/generated/without modifying tracked source files. Keep local development versions inbuild/config.yml,build/windows/info.json, andbuild/darwin/Info.plistaligned withversion.txt(pnpm run setupdoes this automatically). Workspacepackage.jsonversions are independent.When
WAILSPRING_RELEASE_TAGis set, it must equalvplusWAILSPRING_RELEASE_VERSION. The release workflow verifies that the tag already exists and points at the checked-out commit; it never creates tags. Manual release runs must start frommainor the tag itself.Enable signed updates in your app
Unauthenticated update checks require a public GitHub repository. A generated app reads its repository identity from
github.repositoryin Actions—there is no default update feed.WAILSPRING_UPDATE_PUBLIC_KEY: the raw 32-byte base64 public key.WAILSPRING_UPDATES_ENABLED:trueonce ready to ship builds with updates enabled.release, configure reviewers or branch/tag protection rules, and store the private key’s PEM contents in environment secretWAILSPRING_UPDATE_PRIVATE_KEY. Only the final signing/draft job accesses this secret, and a key mismatch fails verification before creating a draft.contents: read, never usepull_request_target, and never receive signing secrets. Only thedraftjob requestscontents: write. Restrict who can pushv*.*.*tags.Local release build with updates enabled
Set these environment variables before running
pnpm run desktop:build(no private key is needed to compile the binary):Omit
WAILSPRING_ENABLE_UPDATESto build a downloadable binary with updates turned off. WhenWAILSPRING_ENABLE_UPDATES=true, missing or malformed repository/key values fail the build immediately, and Go re-validates linked settings at startup.Prepare, review, and publish a release
v1.2.3tag (or triggerPrepare draft releasemanually for an existing tag).wails3 updater manifestto producelatest.jsonwith Ed25519ph signatures and SHA-512 digests, verifies every artifact against the pinned public key, checks exact versions and tagged download URLs, and writesSHA256SUMS. Temporary key files are excluded from artifacts and deleted even on failure.latest.json, andSHA256SUMS(existing releases and drafts are never overwritten).Before your first published release, that URL returns 404 and the updater reports no update available. Wails verifies artifact bytes against the pinned key before staging; manifest release notes and metadata are not separately signed, so treat GitHub release editing as trusted and never render release notes as HTML.
How the native updater behaves
internal/app.UpdateServiceexposes five methods:GetStatus,CheckForUpdates,DownloadUpdate,CancelUpdate, andRestartToUpdate. None accept a repository, URL, path, key, token, or version from the frontend. Status returns semantic fields (configuration, disabled reason, current/latest version, Wails phase, busy flag, byte progress, and localization error key) with no local paths or secrets..appwithout restarting. Restarting requires a verifiedreadystate and explicit confirmation in Settings (Restart to update → Confirm restart).Signing and verification limits
latest.json, because modifying an artifact afterward invalidates its update signature.pnpm run test:goandnode --test scripts/release.test.mjslocally; setWAILSPRING_TEST_WAILS=true node --test scripts/release-cli.test.mjsto exercise an isolated Wails CLI signing/verification fixture. The GitHub Actions workflows are configured to compile and package all four targets—check your repository’s Actions tab for actual commit and tag status—but automated workflows do not verify macOS/Linux interactive runtime, native OS actions (clipboard, file dialogs, notifications), or live self-replacement. Test an actual update and restart on a disposable install on each target OS before publishing a release.For upstream lifecycle details, see the Wails updater guide. This implementation follows Wails 3.1.0.