max / goingson
1 file changed,
+16 insertions,
-5 deletions
| @@ -14,22 +14,33 @@ See `_meta/docs/deploy.md` for shared infrastructure (machines, git remotes, col | |||
| 14 | 14 | ## Build Commands | |
| 15 | 15 | ||
| 16 | 16 | ```bash | |
| 17 | + | # Signing env (see _meta/docs/deploy.md § Tauri Updater Signing for setup). | |
| 18 | + | # Linux/macOS prefix: | |
| 19 | + | # . ~/.tauri/passwords.env && \ | |
| 20 | + | # TAURI_SIGNING_PRIVATE_KEY=$HOME/.tauri/goingson.key \ | |
| 21 | + | # TAURI_SIGNING_PRIVATE_KEY_PASSWORD=$GOINGSON_TAURI_PASSWORD \ | |
| 22 | + | # cargo tauri build | |
| 23 | + | ||
| 17 | 24 | # macOS (local): | |
| 18 | - | cd ~/Code/Apps/goingson && cargo tauri build | |
| 25 | + | cd ~/Code/Apps/goingson && \ | |
| 26 | + | . ~/.tauri/passwords.env && \ | |
| 27 | + | TAURI_SIGNING_PRIVATE_KEY=$HOME/.tauri/goingson.key \ | |
| 28 | + | TAURI_SIGNING_PRIVATE_KEY_PASSWORD=$GOINGSON_TAURI_PASSWORD \ | |
| 29 | + | cargo tauri build | |
| 19 | 30 | cp target/release/bundle/dmg/*.dmg ~/Dist/goingson/macos/ | |
| 20 | 31 | ||
| 21 | 32 | # Linux aarch64 (astra): | |
| 22 | - | ssh astra "source ~/.cargo/env && cd ~/Code/Apps/goingson && git pull && cargo tauri build" | |
| 33 | + | ssh astra 'source ~/.cargo/env && cd ~/Code/Apps/goingson && git pull && . ~/.tauri/passwords.env && TAURI_SIGNING_PRIVATE_KEY=$HOME/.tauri/goingson.key TAURI_SIGNING_PRIVATE_KEY_PASSWORD=$GOINGSON_TAURI_PASSWORD cargo tauri build' | |
| 23 | 34 | scp astra:~/Code/Apps/goingson/target/release/bundle/appimage/*.AppImage ~/Dist/goingson/linux-aarch64/ | |
| 24 | 35 | scp astra:~/Code/Apps/goingson/target/release/bundle/deb/*.deb ~/Dist/goingson/linux-aarch64/ | |
| 25 | 36 | ||
| 26 | 37 | # Linux x86_64 (pop-os): | |
| 27 | - | ssh pop-os "source ~/.cargo/env && cd ~/Code/Apps/goingson && git pull && cargo tauri build" | |
| 38 | + | ssh pop-os 'source ~/.cargo/env && cd ~/Code/Apps/goingson && git pull && . ~/.tauri/passwords.env && TAURI_SIGNING_PRIVATE_KEY=$HOME/.tauri/goingson.key TAURI_SIGNING_PRIVATE_KEY_PASSWORD=$GOINGSON_TAURI_PASSWORD cargo tauri build' | |
| 28 | 39 | scp pop-os:~/Code/Apps/goingson/target/release/bundle/appimage/*.AppImage ~/Dist/goingson/linux-x86_64/ | |
| 29 | 40 | scp pop-os:~/Code/Apps/goingson/target/release/bundle/deb/*.deb ~/Dist/goingson/linux-x86_64/ | |
| 30 | 41 | ||
| 31 | - | # Windows (windows-x86): | |
| 32 | - | ssh me@windows-x86 "cd C:\Users\me\Code\Apps\goingson; git pull; cargo tauri build" | |
| 42 | + | # Windows (windows-x86): run via PowerShell — see _meta/docs/deploy.md for the $env pattern. | |
| 43 | + | ssh me@windows-x86 'powershell -Command ". C:\Users\me\.tauri\passwords.ps1; $env:TAURI_SIGNING_PRIVATE_KEY=\"C:\Users\me\.tauri\goingson.key\"; $env:TAURI_SIGNING_PRIVATE_KEY_PASSWORD=$env:GOINGSON_TAURI_PASSWORD; cd C:\Users\me\Code\Apps\goingson; git pull; cargo tauri build"' | |
| 33 | 44 | scp me@windows-x86:"C:/Users/me/Code/Apps/goingson/target/release/bundle/msi/*.msi" ~/Dist/goingson/windows/ | |
| 34 | 45 | scp me@windows-x86:"C:/Users/me/Code/Apps/goingson/target/release/bundle/nsis/*-setup.exe" ~/Dist/goingson/windows/ | |
| 35 | 46 | ``` |