fix: remove desktop shortcut from NSIS installer by default
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Has been cancelled
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Has been cancelled
Tauri's NSIS bundler creates a desktop shortcut unconditionally. Added a POSTINSTALL hook that deletes it immediately after creation. Start menu shortcut remains. Users who want a desktop shortcut can create one manually. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f825692ecc
commit
74b9be3046
@ -39,7 +39,8 @@
|
|||||||
"nsis": {
|
"nsis": {
|
||||||
"displayLanguageSelector": false,
|
"displayLanguageSelector": false,
|
||||||
"installerIcon": "icons/icon.ico",
|
"installerIcon": "icons/icon.ico",
|
||||||
"installMode": "perMachine"
|
"installMode": "perMachine",
|
||||||
|
"installerHooks": "./windows/hooks.nsh"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
6
src-tauri/windows/hooks.nsh
Normal file
6
src-tauri/windows/hooks.nsh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
; Wraith NSIS installer hooks
|
||||||
|
; Desktop shortcut is OFF by default — Tauri creates one, we remove it.
|
||||||
|
|
||||||
|
!macro NSIS_HOOK_POSTINSTALL
|
||||||
|
Delete "$DESKTOP\${MAINBINARYNAME}.lnk"
|
||||||
|
!macroend
|
||||||
Loading…
Reference in New Issue
Block a user