diff --git a/config.forge.js b/config.forge.js index 649a0af..b031a66 100644 --- a/config.forge.js +++ b/config.forge.js @@ -6,8 +6,15 @@ module.exports = { packageName: "altarik-launcher", name: "Altarik Launcher", productName: "altarik-launcher", - icon: path.resolve(__dirname, 'icon.ico') + icon: path.resolve(__dirname, 'icon.ico'), + asar: true, }, + plugins: [ + { + name: '@electron-forge/plugin-auto-unpack-natives', + config: {} + } + ], makers: [ { name: "@electron-forge/maker-squirrel", diff --git a/package.json b/package.json index a9f7c21..533cdd1 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "@electron-forge/cli": "^6.4.1", "@electron-forge/maker-squirrel": "^6.4.1", "@electron-forge/maker-zip": "^6.4.1", + "@electron-forge/plugin-auto-unpack-natives": "^6.4.1", "@electron-forge/publisher-github": "^6.4.1", "electron": "^26.1.0" }, diff --git a/yarn.lock b/yarn.lock index 89c7363..dd26d07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -109,6 +109,14 @@ fs-extra "^10.0.0" got "^11.8.5" +"@electron-forge/plugin-auto-unpack-natives@^6.4.1": + version "6.4.1" + resolved "https://registry.yarnpkg.com/@electron-forge/plugin-auto-unpack-natives/-/plugin-auto-unpack-natives-6.4.1.tgz#14d8f66dcb1905c61ee738ea74b38e0b50c2f00b" + integrity sha512-6EPVt3G/vnHBKhrVnOcA+o3ayLNJ3M1ptvLbgULSYzLxL6erfILOmCeXKuOAyBebGPDsZoVliJ0Hh7uaNg+1Og== + dependencies: + "@electron-forge/plugin-base" "6.4.1" + "@electron-forge/shared-types" "6.4.1" + "@electron-forge/plugin-base@6.4.1": version "6.4.1" resolved "https://registry.yarnpkg.com/@electron-forge/plugin-base/-/plugin-base-6.4.1.tgz#8821a17f4ba53de3838322db1dedb1db9bbacdad"