Fix stale shortcuts when updating from 1.x to 2.x

This commit is contained in:
Julian Chang 2026-07-19 10:12:24 +09:00
parent 778be93a39
commit 54c9cf1ff6
No known key found for this signature in database

View file

@ -83,6 +83,17 @@ application-folder-position = { x = 440, y = 190 }
digest-algorithm = "sha256" digest-algorithm = "sha256"
timestamp-url = "https://timestamp.digicert.com" timestamp-url = "https://timestamp.digicert.com"
[package.metadata.packager.nsis]
preinstall-section = """
Section "-OneClientTauriMigration"
; Stale Tauri root start-menu shortcut (this build only writes the sub-folder one).
Delete "$SMPROGRAMS\\${PRODUCTNAME}.lnk"
; Old Tauri main binary (renamed OneClient.exe -> oneclient_app.exe). Locked while
; the outdated app is running during an auto-update, so fall back to reboot removal.
Delete /REBOOTOK "$INSTDIR\\OneClient.exe"
SectionEnd
"""
[package.metadata.packager.deb] [package.metadata.packager.deb]
desktop-template = "distribution/linux/org.polyfrost.oneclient.template" desktop-template = "distribution/linux/org.polyfrost.oneclient.template"