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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user