From cb69a35dd63c149d6b55d24547e69c1791cf6f6b Mon Sep 17 00:00:00 2001 From: KayoticCarnige <32397453+kckarnige@users.noreply.github.com> Date: Mon, 18 Jul 2022 14:53:25 -0400 Subject: [PATCH] 2 new things (Read desc.) (#159) - Cleaned up ASAR packaging, ignoring unneeded files for building - Moved install location for Windows users ("AppData\Local\Programs" -> "AppData\Local" --- build/installer.nsh | 8 ++++++++ package.json | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 build/installer.nsh 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": {