📦 Chore: fix CI script

This commit is contained in:
PiEgg
2020-01-01 19:01:47 +08:00
parent 85f4c67e0b
commit a7995c037c
3 changed files with 11 additions and 4 deletions
+2 -3
View File
@@ -11,7 +11,6 @@ platform:
- x64
cache:
- node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
- '%USERPROFILE%\AppData\Local\Yarn\cache'
@@ -20,9 +19,9 @@ init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node 8 x64
- ps: Install-Product node 12 x64
- git reset --hard HEAD
- npm install
- yarn
- node --version
build_script:
+1 -1
View File
@@ -12,7 +12,7 @@
"postuninstall": "electron-builder install-app-deps",
"cz": "git-cz",
"bump": "bump-version",
"release": "npm run electron:build"
"release": "npm run electron:build -p always"
},
"main": "background.js",
"husky": {
+8
View File
@@ -24,6 +24,14 @@ module.exports = {
builderOptions: {
productName: 'PicGo',
appId: 'com.molunerfinn.picgo',
publish: [
{
provider: 'github',
owner: 'Molunerfinn',
repo: 'PicGo',
releaseType: 'draft'
}
],
dmg: {
contents: [
{