From bf99a64baf565597683bbdb0da69bab6aafb1dec Mon Sep 17 00:00:00 2001 From: Psychotoxical Date: Thu, 2 Apr 2026 03:23:17 +0200 Subject: [PATCH] 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 ". Exit 0 cleanly. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a32f86a0..24c1fe82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -140,7 +140,11 @@ jobs: SIG_NAME="Psysonic_x64.app.tar.gz.sig" fi 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" fi npx tauri signer sign --private-key "$TAURI_SIGNING_PRIVATE_KEY" --password "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD" "$BUNDLE"