How to sign a Tauri app on Windows
Add the CLI as a dev dependency with npm install --save-dev github:bamboodeploy/cli#v1.2.0, then set bundle.windows.signCommand in src-tauri/tauri.conf.json to node ../node_modules/@bamboodeploy/cli/bin/bamboo.js sign %1. Tauri runs it for every Windows binary it produces, so tauri build ends with signed files.
1. Install the CLI and set your API key
npm install --save-dev github:bamboodeploy/cli#v1.2.0
Create a key in the dashboard under API Keys. It starts with bd_live_. Save it for your Windows user, then open a new terminal so it sees the new variable:
setx BAMBOO_API_KEY bd_live_...
A .bamboorc file in your user folder with the line BAMBOO_API_KEY=bd_live_... works too.
2. Set signCommand
{
"bundle": {
"windows": {
"signCommand": "node ../node_modules/@bamboodeploy/cli/bin/bamboo.js sign %1"
}
}
}
Two details matter here:
- Use
node, notnpx. Tauri starts the command directly, without a shell, andnpxis a script on Windows, not an exe, so it will not launch. - The path is relative to
src-tauri.tauri buildruns from that folder, and in the default layoutnode_modulessits one level up, hence the../. Tauri turns a relative path that exists into a full path, so the same command also works when the NSIS step signs the uninstaller.
Tauri replaces %1 with each file it signs: the app exe, the uninstaller and every installer you bundle, NSIS or MSI. Each one is a separate upload and signature.
3. Build
npm run tauri build
The signed installers are in src-tauri\target\release\bundle\nsis and src-tauri\target\release\bundle\msi.
No npm in the project?
Install the .NET tool (dotnet tool install -g BambooDeploy.Sign) or the Python package (pip install bamboodeploy). Both put a real bamboo-sign.exe on PATH, which Tauri can start directly:
"signCommand": "bamboo-sign sign %1"
4. In GitHub Actions
- run: npm ci
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BAMBOO_API_KEY: ${{ secrets.BAMBOO_API_KEY }}
The action runs tauri build, which calls your signCommand with the key from the environment.
The updater key is a different thing
If you use the Tauri updater, keep TAURI_SIGNING_PRIVATE_KEY as it is. That key signs update bundles for the updater to verify; signCommand adds the code signature that Windows checks. You need both.
Smart App Control
On Windows 11 with Smart App Control on, a blocked program has no Run anyway button. Smart App Control lets a file with a valid signature run, and it checks every exe and DLL as it loads, not only the file the user downloaded. With signCommand set, the app exe, the uninstaller and the installers come out signed. If you ship sidecar binaries, check that they are signed too: right-click, Properties, Digital Signatures.
Common errors
program not foundat the first sign step: the command starts withnpxornpm. Start it withnodeand the script path.Cannot find module ...\src-tauri\node_modules\@bamboodeploy\cli\bin\bamboo.js: the path is missing the../.
Otherwise the sign step fails with one of the CLI's exit codes:
| Exit code | Meaning | What to do |
|---|---|---|
| 1 | Bad or missing API key, file not found, or signing denied or failed | Read the printed message. Check BAMBOO_API_KEY and the file path. |
| 2 | Signing needs a Premium plan | Upgrade in the dashboard. |
| 3 | Fewer than two verified connections | Verify your email plus a domain, GitHub or similar under Connections in the dashboard. |
| 4 | Timed out waiting for the signature | The build may be waiting for review. Run the same command again once it is approved. |
FAQ
Does this work with Tauri 1?
This guide is for Tauri 2. On Tauri 1, run the CLI on the installers in src-tauri\target\release\bundle after the build.
Why does one build create several signatures?
Tauri calls signCommand once per file: the app exe, the uninstaller and each installer. Every call is a separate upload and signature.
Whose name does Windows show as the publisher?
Ours. We sign your build with our EV code signing certificate, so Windows shows our verified publisher name instead of Unknown publisher. You need no certificate, company registration or USB token of your own.
Does signing remove the SmartScreen warning at once?
Not on its own. A valid signature replaces Unknown publisher with a verified publisher, and Smart App Control lets a signed file run. SmartScreen also weighs reputation, which builds as people download and run your files, and no certificate grants it instantly, EV included. See EV certificates no longer skip SmartScreen.
What do I need before I can sign?
A Bamboo Deploy account, an API key from the dashboard, a Premium plan and two verified connections: your email plus a domain, GitHub or similar. Uploading and scanning are free.
Bamboo Deploy scans every build and signs it with our EV certificate, so you need no certificate, no company registration and no USB token of your own. Get started, or read the docs.