fix ci build

This commit is contained in:
刘浩远 2020-07-06 20:50:00 +08:00
parent f736a065f7
commit bdaaeb9b78
3 changed files with 4 additions and 6 deletions

View File

@ -16,7 +16,7 @@ jobs:
run: |
sudo npm install --unsafe-perm=true --allow-root
npm run build
electron-builder --linux -p never
npm run package-linux
- name: Get app version
id: package-version

View File

@ -2,8 +2,6 @@ name: CI/CD Release Main
on:
push:
branches:
- master
tags:
- 'v*'
@ -18,8 +16,7 @@ jobs:
run: |
npm install
npm run build
electron-builder -w --x64 -p never
electron-builder -w --ia32 -p never
npm run package-win-ci
- name: Get app version
id: package-version

View File

@ -8,9 +8,10 @@
"electron": "electron ./dist/electron.js",
"start": "npm run build && npm run electron",
"package-win": "electron-builder -w --x64 && electron-builder -w --ia32 && electron-builder -w appx:arm64",
"package-win-ci": "electron-builder -w --x64 -p never && electron-builder -w --ia32 -p never",
"package-mac": "sudo electron-builder --mac",
"package-mas": "sudo electron-builder --mac mas && sudo bash build/resignAndPackage.sh",
"package-linux": "electron-builder --linux"
"package-linux": "electron-builder --linux -p never"
},
"keywords": [],
"author": "Haoyuan Liu",