From b89b56cce4059500e48653f8294c5961b02d97bd Mon Sep 17 00:00:00 2001 From: hunlongyu Date: Thu, 7 May 2020 15:12:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=B1=20=E6=B7=BB=E5=8A=A0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 6 +----- package.json | 12 +++++++++--- vue.config.js | 27 ++++++++++++++++++++++++++- 3 files changed, 36 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b5a4d4..479a58f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file diff --git a/package.json b/package.json index 7efff6b..ea46418 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/vue.config.js b/vue.config.js index 24eda72..2d15a27 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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'] + } } } }