From fedcdd8e9d550d5afde1b1986fc5edddae829290 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 31 Jul 2023 12:34:06 +0200 Subject: [PATCH] Use make --- README.md | 4 ++-- package-lock.json | 40 ++++++++++++++++++++++++++++++++++++++++ package.json | 16 +++++++++++++++- 3 files changed, 57 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 380ecc7..aad8a81 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,6 @@ ## Package the app for Windows ```bash -npm install --platform=win32 -npm run package +npm install +npm run make -- --platform=win32 ``` diff --git a/package-lock.json b/package-lock.json index c337856..9636511 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 409e543..57c43b6 100644 --- a/package.json +++ b/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" + ] + } + ] + } } }