This commit is contained in:
Mylloon 2023-07-31 12:34:06 +02:00
parent 8278309424
commit fedcdd8e9d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 57 additions and 3 deletions

View file

@ -7,6 +7,6 @@
## Package the app for Windows ## Package the app for Windows
```bash ```bash
npm install --platform=win32 npm install
npm run package npm run make -- --platform=win32
``` ```

40
package-lock.json generated
View file

@ -15,6 +15,7 @@
}, },
"devDependencies": { "devDependencies": {
"@electron-forge/cli": "^6.2.1", "@electron-forge/cli": "^6.2.1",
"@electron-forge/maker-zip": "^6.2.1",
"electron": "^25.3.2" "electron": "^25.3.2"
} }
}, },
@ -156,6 +157,22 @@
"node": ">= 14.17.5" "node": ">= 14.17.5"
} }
}, },
"node_modules/@electron-forge/maker-zip": {
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/@electron-forge/maker-zip/-/maker-zip-6.2.1.tgz",
"integrity": "sha512-EgKArMT3Njn9/NZ7g2gGrhl8Y3F84Mm9b9Yt5WOziQaUAWvywFdijhUn4Oq631f3wU93xNq/CZbKvYWAK0NjnA==",
"dev": true,
"dependencies": {
"@electron-forge/maker-base": "6.2.1",
"@electron-forge/shared-types": "6.2.1",
"cross-zip": "^4.0.0",
"fs-extra": "^10.0.0",
"got": "^11.8.5"
},
"engines": {
"node": ">= 14.17.5"
}
},
"node_modules/@electron-forge/plugin-base": { "node_modules/@electron-forge/plugin-base": {
"version": "6.2.1", "version": "6.2.1",
"resolved": "https://registry.npmjs.org/@electron-forge/plugin-base/-/plugin-base-6.2.1.tgz", "resolved": "https://registry.npmjs.org/@electron-forge/plugin-base/-/plugin-base-6.2.1.tgz",
@ -1461,6 +1478,29 @@
"node": ">= 10" "node": ">= 10"
} }
}, },
"node_modules/cross-zip": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/cross-zip/-/cross-zip-4.0.0.tgz",
"integrity": "sha512-MEzGfZo0rqE10O/B+AEcCSJLZsrWuRUvmqJTqHNqBtALhaJc3E3ixLGLJNTRzEA2K34wbmOHC4fwYs9sVsdcCA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"engines": {
"node": ">=12.10"
}
},
"node_modules/debug": { "node_modules/debug": {
"version": "4.3.4", "version": "4.3.4",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",

View file

@ -6,7 +6,7 @@
"scripts": { "scripts": {
"build": "rm -rf ./dist 2> /dev/null; npx tsc", "build": "rm -rf ./dist 2> /dev/null; npx tsc",
"start": "npm run build && electron-forge start", "start": "npm run build && electron-forge start",
"package": "npm run build && electron-forge package --platform=win32" "make": "npm run build && electron-forge make"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -24,6 +24,20 @@
}, },
"devDependencies": { "devDependencies": {
"@electron-forge/cli": "^6.2.1", "@electron-forge/cli": "^6.2.1",
"@electron-forge/maker-zip": "^6.2.1",
"electron": "^25.3.2" "electron": "^25.3.2"
},
"config": {
"forge": {
"packagerConfig": {},
"makers": [
{
"name": "@electron-forge/maker-zip",
"platforms": [
"win32"
]
}
]
}
} }
} }