diff --git a/config/build/installer.nsh b/config/build/installer.nsh new file mode 100644 index 0000000..fce51ef --- /dev/null +++ b/config/build/installer.nsh @@ -0,0 +1,11 @@ +Var SystemDrive + +!macro preInit + ReadEnvStr $SystemDrive SYSTEMDRIVE + SetRegView 64 + WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$SystemDrive\앱이설치될폴더명" + WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$SystemDrive\앱이설치될폴더명" + SetRegView 32 + WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$SystemDrive\앱이설치될폴더명" + WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$SystemDrive\앱이설치될폴더명" +!macroend \ No newline at end of file diff --git a/package.json b/package.json index f0ad0ed..d25be21 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,36 @@ "electron:builder:install-app-deps": "electron-builder install-app-deps" }, "private": true, + "productName": "overFlow Network Scanner", + "build": { + "appId": "com.loafle.overflow.scanner", + "files": [ + "" + ], + "win": { + "target": [ + { + "target": "nsis", + "arch": [ + "x64", + "ia32" + ] + } + ], + "icon": ".ico" + }, + "nsis": { + "oneClick": false, + "perMachine": true, + "allowToChangeInstallationDirectory": true, + "language": 1042, + "include": "config/build/installer.nsh", + "shortcutName": "" + }, + "directories": { + "output": "build/packages" + } + }, "dependencies": { "electron-devtools-installer": "^2.2.4", "rxjs": "^6.2.2",