diff --git a/build/installer.nsh b/build/installer.nsh new file mode 100644 index 0000000..06b5934 --- /dev/null +++ b/build/installer.nsh @@ -0,0 +1,8 @@ +!macro preInit + SetRegView 64 + WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$LocalAppData\ArmCord" + WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$LocalAppData\ArmCord" + SetRegView 32 + WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$LocalAppData\ArmCord" + WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$LocalAppData\ArmCord" +!macroend \ No newline at end of file diff --git a/package.json b/package.json index 2cf0a0b..9d64bfe 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,17 @@ "ws": "^8.8.0" }, "build": { + "nsis": { + "include": "build/installer.nsh" + }, + "files": [ + "!*", + "assets", + "node_modules", + "ts-out", + "package.json", + "LICENSE" + ], "appId": "com.smartfridge.armcord", "productName": "ArmCord", "mac": {