From 214745ae87a54e06a5f4ead4cf9f8a89a1e9491a Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 17 Aug 2019 14:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ewin32=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aa3a2fe7..ef7940da 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "publish": "node publish", "pub:gh": "node build-config/pack.js && electron-builder --win -p always", - "pack": "node build-config/pack.js && electron-builder", + "pack": "node build-config/pack.js && electron-builder -w", + "pack:linux": "node build-config/pack.js && electron-builder -l", "pack:dir": "node build-config/pack.js && electron-builder --dir", "dev": "node build-config/runner-dev.js", "clean:electron": "rimraf dist/electron", @@ -35,7 +36,30 @@ ], "win": { "icon": "src/static/icons/lunch.ico", - "legalTrademarks": "lyswhut" + "legalTrademarks": "lyswhut", + "target": [ + { + "arch": ["ia32", "x64"], + "target": "nsis" + } + ] + }, + "linux": { + "target": [ + { + "target": "AppImage", + "arch": ["x64"] + }, + { + "arch": ["ia32", "x64"], + "target": "deb" + }, + { + "arch": ["x64"], + "target": "snap" + } + ], + "maintainer": "lyswhut " }, "nsis": { "oneClick": false,