Publishing a GitHub release builds installers for all three desktop platforms
and attaches them to that release. The automation lives in
.github/workflows/release.yml.
The Windows installer's finish page offers Launch Draftline, ticked by
default. The in-app updater closes Draftline before handing the downloaded
installer to the shell, so this is what brings the app back once the update
is applied. The launch goes through explorer.exe so Draftline starts as the
signed-in user rather than inheriting the installer's elevated token
(LaunchDraftline in wails/build/windows/installer/project.nsi).
| Asset | Platform | Notes |
|---|---|---|
Draftline-<version>-windows-amd64-setup.exe |
Windows 10/11, x64 | NSIS installer. Installs to Program Files, adds Start Menu and desktop shortcuts, downloads the WebView2 runtime if missing, registers an uninstaller. |
Draftline-<version>-windows-amd64-portable.zip |
Windows 10/11, x64 | The bare draftline.exe. Runs from anywhere; file associations are registered per-user on first launch. |
Draftline-<version>-macos-universal.dmg |
macOS 10.15+, Intel and Apple Silicon | Drag-to-Applications disk image. Ad-hoc signed unless Apple credentials are configured (see below). |
Draftline-<version>-linux-x86_64.deb |
Debian, Ubuntu 22.04+, Mint, Pop!_OS, and derivatives (x86_64) | The recommended Linux install. Double-click, or sudo apt install ./Draftline-<version>-linux-x86_64.deb; apt pulls in WebKitGTK 4.1 and GTK 3 itself. Registers the desktop entry, icon, and .draftline association system-wide. |
Draftline-<version>-linux-x86_64.rpm |
Fedora 36+, RHEL 9+, openSUSE, and derivatives (x86_64) | sudo dnf install ./Draftline-<version>-linux-x86_64.rpm (or zypper). Same contents and dependencies as the .deb. |
Draftline-<version>-linux-x86_64.AppImage |
Other x86_64 distributions with WebKitGTK 4.1 and GTK 3 installed (Arch, Alpine, NixOS, and the like) | Mark executable and run. Nothing is registered with the desktop. Does not start on Ubuntu 22.04 (verified on hardware); Debian and Ubuntu-family users should take the .deb, Red Hat-family users the .rpm. On Ubuntu 24.04 the .deb is still the first choice, with the AppImage as the fallback. |
SHA256SUMS.txt |
all | Checksums of every asset. |
- Bump the version in every location listed in
docs/VERSION.mdand add theCHANGELOG.mdentry. Commit and push tomain. - On GitHub, create a release whose tag is the new version, with or without a
leading
v(for examplev0.17.02562). For a beta or release candidate, append a suffix (v0.17.02562-beta,v0.17.02562-rc.1) and tick Set as a pre-release; the suffix appears in the asset file names, while the binaries still report the plain version. The tag must otherwise matchconst AppVersioninwails/app.go; the workflow fails immediately if it does not, so a stale binary can never be published under a newer tag. - Publish the release. The workflow builds all packages (roughly 10 to 15 minutes) and uploads them to the release. Draft releases do not trigger a build until they are published.
To test the packaging without creating a release, run the Release workflow from the Actions tab (workflow_dispatch). The packages appear as run artifacts and nothing is uploaded to a release.
The version is read from wails/app.go at build time and stamped into the
Windows exe metadata, the NSIS installer, and the macOS Info.plist by
.github/scripts/stamp-version.js and PlistBuddy. Those stamps are build-time
only; wails/wails.json and build/darwin/Info.plist are not edited in the
repository during a release.
-
Windows (
windows-latest):wails build -platform windows/amd64 -nsis. The installer script iswails/build/windows/installer/project.nsi; Wails regenerates the companionwails_tools.nshon every build, so onlyproject.nsiis tracked; it shows the repositoryLICENSE(MIT) as the installer's license page. The exe icon and version resource come frombuild/windows/icon.icoandbuild/windows/info.json. -
macOS (
macos-latest):wails build -platform darwin/universalproduces the.appfrombuild/darwin/Info.plistand an.icnsgenerated frombuild/appicon.png. The bundle is code-signed, wrapped in a DMG withhdiutil, and notarized when credentials exist. This job is best-effort: the publish job attaches the Windows and Linux assets even when it fails, so a release may ship without a DMG. The in-app updater serves each platform the newest release that has its asset, so Macs are offered the previous release until the next DMG builds. -
Linux (
ubuntu-22.04, deliberately the oldest supported release so the binary links against its glibc and WebKitGTK; a build from 24.04 installs on 22.04 but will not start):wails build -platform linux/amd64 -tags webkit2_41, then the same four files (build/bin/draftline,build/linux/draftline.desktop,build/linux/draftline-mime.xml,build/appicon.png) are packaged three ways.nfpmreadsbuild/linux/nfpm.yamland produces the.deband.rpm(dependencies declared per family, post-install scripts refresh the desktop, MIME, and icon caches).appimagetoolpacks the AppDir with an explicitly supplied static type2 runtime so the AppImage needs nolibfuse2.The in-app updater on Linux works out how Draftline was installed: an AppImage (the runtime exports
APPIMAGE) is replaced in place and relaunched; a.debor.rpminstall (binary under/usrwithdpkgorrpmpresent) downloads the matching package and opens a terminal window runningsudo apt-get install -y <file>(ordnf,yum,zypper), which resolves dependencies and then starts the new Draftline. A source build or hand-unpacked binary is offered no package and pointed at the release page. Seewails/update_packaging.go.
Without these the workflow still succeeds; the notes describe what users see.
Add these repository secrets (Settings → Secrets and variables → Actions):
| Secret | Value |
|---|---|
APPLE_CERTIFICATE_P12 |
Base64 of a .p12 export of your Developer ID Application certificate and private key (base64 -i cert.p12 | pbcopy). |
APPLE_CERTIFICATE_PASSWORD |
The password used when exporting the .p12. |
APPLE_ID |
Apple ID email of the developer account. |
APPLE_TEAM_ID |
10-character Team ID. |
APPLE_APP_SPECIFIC_PASSWORD |
An app-specific password generated at appleid.apple.com for notarization. |
With the first two set, the app and DMG are signed with the hardened runtime
using build/darwin/entitlements.plist. With all five set, the DMG is also
notarized and stapled, so it opens without Gatekeeper warnings.
Without them the bundle is ad-hoc signed. Users must right-click → Open the
first time, or on macOS 15 and later approve the app under System Settings →
Privacy & Security after the first blocked launch. Downloaded copies may also
need xattr -dr com.apple.quarantine /Applications/Draftline.app.
Not wired up. Unsigned installers trigger a SmartScreen "unknown publisher"
warning that users dismiss with More info → Run anyway. Signing requires an
OV or EV code-signing certificate (a hardware token or a cloud signing
service such as Azure Trusted Signing); when one is available, add a
signtool step after wails build for draftline.exe and the installer.
wails/build/appicon.pngis 565×555. Wails'.icnsgeneration and the AppImage icon both expect a square image; a 1024×1024 PNG is the recommended replacement.- Linux and Windows are built for x86_64 only. Windows on ARM and Linux ARM64 packages are not produced.
- Windows builds are also tested locally before every release. The macOS and Linux packages are produced in CI and have been run on real hardware on both platforms.