Use make
This commit is contained in:
parent
8278309424
commit
fedcdd8e9d
3 changed files with 57 additions and 3 deletions
|
@ -7,6 +7,6 @@
|
|||
## Package the app for Windows
|
||||
|
||||
```bash
|
||||
npm install --platform=win32
|
||||
npm run package
|
||||
npm install
|
||||
npm run make -- --platform=win32
|
||||
```
|
||||
|
|
40
package-lock.json
generated
40
package-lock.json
generated
|
@ -15,6 +15,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@electron-forge/cli": "^6.2.1",
|
||||
"@electron-forge/maker-zip": "^6.2.1",
|
||||
"electron": "^25.3.2"
|
||||
}
|
||||
},
|
||||
|
@ -156,6 +157,22 @@
|
|||
"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": {
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@electron-forge/plugin-base/-/plugin-base-6.2.1.tgz",
|
||||
|
@ -1461,6 +1478,29 @@
|
|||
"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": {
|
||||
"version": "4.3.4",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||
|
|
16
package.json
16
package.json
|
@ -6,7 +6,7 @@
|
|||
"scripts": {
|
||||
"build": "rm -rf ./dist 2> /dev/null; npx tsc",
|
||||
"start": "npm run build && electron-forge start",
|
||||
"package": "npm run build && electron-forge package --platform=win32"
|
||||
"make": "npm run build && electron-forge make"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -24,6 +24,20 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@electron-forge/cli": "^6.2.1",
|
||||
"@electron-forge/maker-zip": "^6.2.1",
|
||||
"electron": "^25.3.2"
|
||||
},
|
||||
"config": {
|
||||
"forge": {
|
||||
"packagerConfig": {},
|
||||
"makers": [
|
||||
{
|
||||
"name": "@electron-forge/maker-zip",
|
||||
"platforms": [
|
||||
"win32"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue