Customize installer

This commit is contained in:
GHOSCHT 2021-06-30 16:09:23 +02:00
parent 24f3185352
commit 3d0ea6b417
2 changed files with 9 additions and 1 deletions

View file

@ -8,7 +8,7 @@
"main": "src/electron.js", "main": "src/electron.js",
"private": true, "private": true,
"build": { "build": {
"productName": "LighControl", "productName": "Light Control",
"appId": "lightcontrol.dashboard", "appId": "lightcontrol.dashboard",
"buildDependenciesFromSource": true, "buildDependenciesFromSource": true,
"npmRebuild": false, "npmRebuild": false,
@ -18,6 +18,11 @@
], ],
"icon": "./assets/icons/win/icon.ico" "icon": "./assets/icons/win/icon.ico"
}, },
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"include": "./scripts/installer.nsh"
},
"directories": { "directories": {
"buildResources": "assets", "buildResources": "assets",
"output": "release" "output": "release"

View file

@ -0,0 +1,3 @@
!macro customInstall
CreateShortcut "$SMSTARTUP\Light Control.lnk" "$INSTDIR\Light Control.exe"
!macroend