修改构建命令

pull/453/head
lyswhut 2021-01-20 14:55:34 +08:00
parent e8dba4d133
commit 43b06a686b
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ npm run dev
npm run pack:dir
# 构建安装包Windows版
npm run pack
npm run pack:win
# 构建安装包Mac版
npm run pack:mac

View File

@ -5,8 +5,8 @@
"main": "./dist/electron/main.js",
"productName": "lx-music-desktop",
"scripts": {
"pack": "node build-config/pack.js && npm run pack:win",
"pack:win": "npm run pack:win:setup:x86_64 && npm run pack:win:7z",
"pack": "npm run pack:win",
"pack:win": "node build-config/pack.js && npm run pack:win:setup:x86_64 && npm run pack:win:7z",
"pack:win:setup:x86_64": "cross-env TARGET=win_安装版 ARCH=x86_64 electron-builder -w=nsis --x64 --ia32",
"pack:win:setup:x64": "cross-env TARGET=win_安装版 ARCH=x64 electron-builder -w=nsis --x64",
"pack:win:setup:x86": "cross-env TARGET=win_安装版 ARCH=x86 electron-builder -w=nsis --ia32",