@@ -24,7 +24,16 @@ cat package.json
2424
2525Bump both to the release version before building. After the release is published, bump both to the next minor.
2626
27- ## Build
27+ ## Build (Signed for Updater)
28+
29+ The updater requires signing artifacts during the build. Export the private key
30+ before ` tauri build ` :
31+
32+ ``` bash
33+ export TAURI_SIGNING_PRIVATE_KEY=~ /.tauri/codexmonitor.key
34+ # optional if you set a password
35+ export TAURI_SIGNING_PRIVATE_KEY_PASSWORD=" "
36+ ```
2837
2938``` bash
3039npm install
@@ -98,17 +107,6 @@ xcrun stapler staple \
98107 src-tauri/target/release/bundle/macos/CodexMonitor.app
99108```
100109
101- ## Build With Updater Signing
102-
103- The updater requires signing artifacts during the build. Export the private key
104- before ` tauri build ` :
105-
106- ``` bash
107- export TAURI_SIGNING_PRIVATE_KEY=~ /.tauri/codexmonitor.key
108- # optional if you set a password
109- export TAURI_SIGNING_PRIVATE_KEY_PASSWORD=" "
110- ```
111-
112110## Package Release Artifacts
113111
114112Note: Tauri's DMG bundling can fail if the generated ` bundle_dmg.sh ` script
@@ -131,6 +129,21 @@ hdiutil create -volname "CodexMonitor" \
131129 release-artifacts/CodexMonitor_< RELEASE_VERSION> _aarch64.dmg
132130```
133131
132+ ## Rebuild Updater Bundle (After Stapling)
133+
134+ After stapling, rebuild the updater tarball and re-sign it so the signature
135+ matches the stapled app:
136+
137+ ``` bash
138+ tar -czf src-tauri/target/release/bundle/macos/CodexMonitor.app.tar.gz \
139+ -C src-tauri/target/release/bundle/macos CodexMonitor.app
140+
141+ npm run tauri signer sign -- \
142+ -f ~ /.tauri/codexmonitor.key \
143+ -p " <PASSWORD_IF_SET>" \
144+ src-tauri/target/release/bundle/macos/CodexMonitor.app.tar.gz
145+ ```
146+
134147## Generate Changelog (from git log)
135148
136149Create release notes from the tag range using plain git log:
@@ -171,7 +184,7 @@ the released artifacts + signatures.
171184 "pub_date" : " 2025-01-01T12:00:00Z" ,
172185 "platforms" : {
173186 "darwin-aarch64" : {
174- "url" : " https://github.com/Dimillian/CodexMonitor/releases/download/v<RELEASE_VERSION>/CodexMonitor_<RELEASE_VERSION>_aarch64.dmg " ,
187+ "url" : " https://github.com/Dimillian/CodexMonitor/releases/download/v<RELEASE_VERSION>/CodexMonitor.app.tar.gz " ,
175188 "signature" : " <BASE64_SIGNATURE>"
176189 }
177190 }
@@ -183,7 +196,10 @@ the bundles. Upload both the `.sig` files and `latest.json` to the same release:
183196
184197``` bash
185198gh release upload v< RELEASE_VERSION> \
186- src-tauri/target/release/bundle/macos/* .sig \
199+ release-artifacts/CodexMonitor.zip \
200+ release-artifacts/CodexMonitor_< RELEASE_VERSION> _aarch64.dmg \
201+ src-tauri/target/release/bundle/macos/CodexMonitor.app.tar.gz \
202+ src-tauri/target/release/bundle/macos/CodexMonitor.app.tar.gz.sig \
187203 latest.json \
188204 --clobber
189205```
0 commit comments