Skip to content

Commit

Permalink
fix: 修正构建错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Oct 17, 2023
1 parent d9b59d4 commit 85a21cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
- name: Build Win x64
run: |
yarn run build:win
mv dist/JumpServer-VideoPlayer-v${{ steps.get_version.outputs.TAG }}.exe release/JumpServer-VideoPlayer-v${{ steps.get_version.outputs.TAG }}-win-x64.exe
mv dist/JumpServer-VideoPlayer-${{ steps.get_version.outputs.TAG }}.exe release/JumpServer-VideoPlayer-${{ steps.get_version.outputs.TAG }}-win-x64.exe
- name: Build Win x86
run: |
rm -rf dist/*
yarn run build:win32
mv dist/JumpServer-VideoPlayer-v${{ steps.get_version.outputs.TAG }}.exe release/JumpServer-VideoPlayer-v${{ steps.get_version.outputs.TAG }}-win-x86.exe
mv dist/JumpServer-VideoPlayer-${{ steps.get_version.outputs.TAG }}.exe release/JumpServer-VideoPlayer-${{ steps.get_version.outputs.TAG }}-win-x86.exe
- name: Release Upload Assets
uses: softprops/action-gh-release@v1
Expand Down
16 changes: 5 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "0.1.10",
"author": "OrangeM21 <[email protected]>",
"description": "An electron-vue project",
"license": "GPLv3",
"license": "GPL-3.0",
"main": "./dist/electron/main.js",
"scripts": {
"build": "node .electron-vue/build.js && electron-builder",
"build:dir": "node .electron-vue/build.js && electron-builder --dir",
"build:win": "node .electron-vue/build.js && electron-builder --win --x64",
"build:win32": "node .electron-vue/build.js && electron-builder --win --ia32",
"build:mac": "node .electron-vue/build.js && electron-builder --mac",
"build:win": "node .electron-vue/build.js && electron-builder --win --x64 --publish never",
"build:win32": "node .electron-vue/build.js && electron-builder --win --ia32 --publish never",
"build:mac": "node .electron-vue/build.js && electron-builder --mac --publish never",
"build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js",
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
"dev": "node .electron-vue/dev-runner.js",
Expand Down Expand Up @@ -60,13 +60,7 @@
"mac": {
"icon": "build/icons/player.icns",
"artifactName": "JumpServer-VideoPlayer-v${version}.${ext}",
"target": {
"target": [
{
"target": "dmg"
}
]
},
"target": ["dmg"],
"category": "public.app-category.utilities"
},
"win": {
Expand Down

0 comments on commit 85a21cb

Please sign in to comment.