fix: Windows desktop updater — setup.exe in latest.json

Tauri v2 signs *-setup.exe for NSIS updates, not only nsis.zip.
Include windows-x86_64 in latest.json and improve platform error messages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-14 11:48:38 +09:00
parent 61de2fb1e6
commit 402f664db7
4 changed files with 11 additions and 3 deletions
+3 -1
View File
@@ -88,9 +88,11 @@ collect_updater_artifacts() {
-name '*.app.tar.gz' -o \
-name '*.tar.gz' -path '*/bundle/macos/*' -o \
-name '*.nsis.zip' -o \
-name '*-setup.nsis.zip' \
-name '*-setup.nsis.zip' -o \
-name '*-setup.exe' -path '*/bundle/nsis/*' \
\) -type f 2>/dev/null | while read -r f; do
cp -f "$f" "$UPDATES_DIR/"
[[ -f "${f}.sig" ]] && cp -f "${f}.sig" "$UPDATES_DIR/"
echo " updater bundle: $(basename "$f")"
done
}
+2
View File
@@ -60,6 +60,8 @@ for (const f of files) {
addPlatform('darwin-aarch64', f);
} else if (lower.endsWith('.nsis.zip') || (lower.includes('setup') && lower.endsWith('.zip'))) {
addPlatform('windows-x86_64', f);
} else if (lower.endsWith('-setup.exe') || (lower.includes('setup') && lower.endsWith('.exe'))) {
addPlatform('windows-x86_64', f);
} else if (lower.endsWith('.app.tar.gz')) {
// universal mac fallback
if (!platforms['darwin-aarch64']) addPlatform('darwin-aarch64', f);