Customize installer
This commit is contained in:
parent
24f3185352
commit
3d0ea6b417
2 changed files with 9 additions and 1 deletions
|
@ -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"
|
||||||
|
|
3
Dashboard/scripts/installer.nsh
Normal file
3
Dashboard/scripts/installer.nsh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
!macro customInstall
|
||||||
|
CreateShortcut "$SMSTARTUP\Light Control.lnk" "$INSTDIR\Light Control.exe"
|
||||||
|
!macroend
|
Reference in a new issue