fix: guard against empty NSIS bundle in Windows signing step

tauri-action already signs and uploads the .nsis.zip.sig when
TAURI_SIGNING_PRIVATE_KEY is set, so the manual find returns empty
and crashed with "a value is required for <FILE>". Exit 0 cleanly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Psychotoxical
2026-04-02 03:23:17 +02:00
parent 523596e414
commit bf99a64baf
+5 -1
View File
@@ -140,7 +140,11 @@ jobs:
SIG_NAME="Psysonic_x64.app.tar.gz.sig" SIG_NAME="Psysonic_x64.app.tar.gz.sig"
fi fi
else else
BUNDLE=$(find src-tauri/target/release/bundle/nsis -name "*.nsis.zip" | head -1) BUNDLE=$(find src-tauri/target/release/bundle/nsis -name "*.nsis.zip" 2>/dev/null | head -1)
if [[ -z "$BUNDLE" ]]; then
echo "No NSIS zip bundle found — tauri-action likely signed and uploaded already. Skipping."
exit 0
fi
SIG_NAME="Psysonic_${VERSION}_x64-setup.nsis.zip.sig" SIG_NAME="Psysonic_${VERSION}_x64-setup.nsis.zip.sig"
fi fi
npx tauri signer sign --private-key "$TAURI_SIGNING_PRIVATE_KEY" --password "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD" "$BUNDLE" npx tauri signer sign --private-key "$TAURI_SIGNING_PRIVATE_KEY" --password "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD" "$BUNDLE"