@@ -122,6 +122,8 @@ pnpm install
122122| build | ` pnpm build ` | Type-check + production frontend build |
123123| preview | ` pnpm preview ` | Preview built frontend |
124124| tauri | ` pnpm tauri ` | Run Tauri CLI commands |
125+ | tauri:keys: generate | ` pnpm tauri:keys:generate ` | Generate updater signing keys |
126+ | tauri:build: signed | ` pnpm tauri:build:signed ` | Build signed updater artifacts |
125127| lint | ` pnpm lint ` | Run ESLint |
126128| lint: fix | ` pnpm lint:fix ` | Auto-fix lint issues |
127129| format | ` pnpm format ` | Format all files with Prettier |
@@ -149,16 +151,20 @@ pnpm install
149151# Run app in development mode
150152pnpm tauri dev
151153
152- # Build production desktop bundles (current OS)
154+ # Build production desktop bundles (current OS, unsigned/local )
153155pnpm tauri build
154156
157+
158+ pnpm tauri signer generate
159+
155160# Generate updater signing keys (IMPORTANT)
156- pnpm tauri signer generate -- -w ~ /.tauri/commdesk.key
161+ pnpm tauri:keys: generate
157162
158- # Use signing keys for local signed build
159- export TAURI_SIGNING_PRIVATE_KEY=" $( cat ~ /.tauri/commdesk.key) "
160- export TAURI_SIGNING_PRIVATE_KEY_PASSWORD=" "
161- pnpm tauri build
163+ # Direct equivalent (important: do not add an extra `--` before `-w`)
164+ pnpm tauri signer generate -w ~ /.tauri/commdesk.key
165+
166+ # Build signed updater artifacts (uses ~/.tauri/commdesk.key by default)
167+ pnpm tauri:build:signed
162168
163169# Release version
164170git add .
@@ -180,6 +186,8 @@ flatpak-builder --force-clean flatpak-build org.commdesk.CommDesk.json
180186pnpm tauri build
181187```
182188
189+ Use ` pnpm tauri:build:signed ` when you need updater artifacts/signatures.
190+
183191Artifacts are generated in:
184192
185193- ` src-tauri/target/release/ `
@@ -216,7 +224,13 @@ Configured in:
216224### 1) Generate updater signing keys
217225
218226``` bash
219- pnpm tauri signer generate -- -w ~ /.tauri/commdesk.key
227+ pnpm tauri:keys:generate
228+ ```
229+
230+ Direct command equivalent:
231+
232+ ``` bash
233+ pnpm tauri signer generate -w ~ /.tauri/commdesk.key
220234```
221235
222236This creates:
@@ -227,11 +241,15 @@ This creates:
227241### 2) Local signed build environment
228242
229243``` bash
230- export TAURI_SIGNING_PRIVATE_KEY=" $( cat ~ /.tauri/commdesk.key) "
231- export TAURI_SIGNING_PRIVATE_KEY_PASSWORD=" "
232- pnpm tauri build
244+ pnpm tauri:build:signed
233245```
234246
247+ The signed build script resolves key path in this order:
248+
249+ 1 . ` TAURI_SIGNING_PRIVATE_KEY ` (if already set)
250+ 2 . ` TAURI_SIGNING_PRIVATE_KEY_PATH ` (custom key file path)
251+ 3 . ` ~/.tauri/commdesk.key ` (default)
252+
235253### 3) GitHub Actions secrets
236254
237255Set in repository secrets:
0 commit comments