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: | run: |
sudo npm install --unsafe-perm=true --allow-root sudo npm install --unsafe-perm=true --allow-root
npm run build npm run build
electron-builder --linux -p never npm run package-linux
- name: Get app version - name: Get app version
id: package-version id: package-version

View File

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

View File

@ -8,9 +8,10 @@
"electron": "electron ./dist/electron.js", "electron": "electron ./dist/electron.js",
"start": "npm run build && npm run electron", "start": "npm run build && npm run electron",
"package-win": "electron-builder -w --x64 && electron-builder -w --ia32 && electron-builder -w appx:arm64", "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-mac": "sudo electron-builder --mac",
"package-mas": "sudo electron-builder --mac mas && sudo bash build/resignAndPackage.sh", "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": [], "keywords": [],
"author": "Haoyuan Liu", "author": "Haoyuan Liu",