From be1ca94d356c6e0553c45c3990a7459e2e98196f Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 18 Sep 2018 10:25:06 +0900 Subject: [PATCH] ing --- config/build/installer.nsh | 11 +++++++++++ package.json | 30 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 config/build/installer.nsh 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",