Spaces:
Running
Running
| # Script to prepare a signed release build | |
| # Usage: ./scripts/prepare-release.sh | |
| set -e | |
| echo "π Checking for signing keys..." | |
| if [ ! -f ~/.tauri/voicebox.key ]; then | |
| echo "β Private key not found at ~/.tauri/voicebox.key" | |
| echo "Run: cd tauri && bun tauri signer generate -w ~/.tauri/voicebox.key" | |
| exit 1 | |
| fi | |
| if [ ! -f ~/.tauri/voicebox.key.pub ]; then | |
| echo "β Public key not found at ~/.tauri/voicebox.key.pub" | |
| exit 1 | |
| fi | |
| echo "β Signing keys found" | |
| echo "" | |
| # Check if public key is in tauri.conf.json | |
| if grep -q "REPLACE_WITH_YOUR_PUBLIC_KEY" tauri/src-tauri/tauri.conf.json; then | |
| echo "β οΈ Public key not configured in tauri.conf.json" | |
| echo "" | |
| echo "Add this to tauri/src-tauri/tauri.conf.json:" | |
| echo "" | |
| cat ~/.tauri/voicebox.key.pub | |
| echo "" | |
| exit 1 | |
| fi | |
| echo "π§ Setting up environment..." | |
| export TAURI_SIGNING_PRIVATE_KEY="$(cat ~/.tauri/voicebox.key)" | |
| export TAURI_SIGNING_PRIVATE_KEY_PASSWORD="" | |
| echo "β Environment configured" | |
| echo "" | |
| echo "π¦ Building release..." | |
| echo "" | |
| bun run build | |
| echo "" | |
| echo "β Release build complete!" | |
| echo "" | |
| echo "π Bundles created in: tauri/src-tauri/target/release/bundle/" | |
| echo "" | |
| echo "Next steps:" | |
| echo "1. Create a GitHub release" | |
| echo "2. Upload all files from the bundle directory" | |
| echo "3. Create latest.json with update metadata" | |
| echo "" | |