Compare commits

...

1 Commits

Author SHA1 Message Date
hunlongyu
b89b56cce4 😱 添加自动更新代码 2020-05-07 15:12:17 +08:00
3 changed files with 36 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ jobs:
- run: |
yarn
yarn electron:build
yarn release
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -30,10 +30,6 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
dist_electron/*.exe
dist_electron/win-unpacked/*.exe
dist_electron/*.dmg
dist_electron/*.snap
dist_electron/*.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,7 +1,12 @@
{
"name": "zyplayer",
"version": "0.9.16",
"name": "zy",
"version": "0.9.19",
"private": true,
"author": {
"name": "Hunlongyu",
"email": "hunlongyu@gmail.com"
},
"description": "ZY Player 资源播放器",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
@@ -9,7 +14,8 @@
"electron:build": "vue-cli-service electron:build",
"dev": "vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps"
"postuninstall": "electron-builder install-app-deps",
"release": "vue-cli-service electron:build -p always"
},
"main": "background.js",
"dependencies": {

View File

@@ -11,7 +11,32 @@ module.exports = {
oneClick: false,
allowToChangeInstallationDirectory: true
},
productName: 'ZY Player 内测版'
productName: 'ZY Player 内测版',
publish: [
{
provider: 'github',
owner: 'Hunlongyu',
repo: 'ZY-Player'
}
],
mac: {
icon: 'build/icon/icon.icns',
category: 'public.app-category.developer-tools',
target: 'default',
extendInfo: {
LSUIElement: 1
}
},
win: {
icon: 'build/icons/icon.ico',
target: 'nsis'
},
linux: {
icon: 'build/icons/'
},
snap: {
publish: ['github']
}
}
}
}