4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-22 06:19:50 +01:00

Add auto unpack natives to reduce loading times and disk consumption

This commit is contained in:
Quentin Legot 2023-09-01 14:18:46 +02:00
parent 4ddd6b0e9a
commit 30d14d4bbc
3 changed files with 17 additions and 1 deletions

View File

@ -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",

View File

@ -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"
},

View File

@ -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"