File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 }
4545 # 构建 Electron App (x64)
4646 - name : Build Electron App for Windows x64
47- run : pnpm run build:win -- --x64
47+ run : pnpm run build:win -- --x64 || true
48+ env :
49+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4850 # 清理不必要的构建产物(保留 .exe 和 .blockmap 文件)
4951 - name : Cleanup Artifacts
5052 run : npx del-cli "dist/**/*.yaml" "dist/**/*.yml"
9395 }
9496 # 构建 Electron App (ARM64)
9597 - name : Build Electron App for Windows ARM64
96- run : pnpm run build:win -- --arm64
98+ run : pnpm run build:win -- --arm64 || true
99+ env :
100+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
97101 # 清理不必要的构建产物(保留 .exe 和 .blockmap 文件)
98102 - name : Cleanup Artifacts
99103 run : npx del-cli "dist/**/*.yaml" "dist/**/*.yml"
Original file line number Diff line number Diff line change @@ -73,14 +73,19 @@ jobs:
7373 # 构建 Electron App
7474 - name : Build macOS Universal App
7575 if : runner.os == 'macOS'
76- run : pnpm run build:mac -- --universal --publish never
76+ run : pnpm run build:mac -- --universal -p never || true
77+ env :
78+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7779 - name : Build Windows x64 & ARM64 App
7880 if : runner.os == 'Windows'
79- run : pnpm run build:win -- --x64 --arm64 --publish never
81+ run : pnpm run build:win -- --x64 --arm64 -p never || true
82+ env :
83+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8084 - name : Build Linux x64 & ARM64 App
8185 if : runner.os == 'Linux'
82- run : pnpm run build:linux -- --x64 --arm64 --publish never
86+ run : pnpm run build:linux -- --x64 --arm64 -p never || true
8387 env :
88+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8489 SNAPCRAFT_STORE_CREDENTIALS : ${{ secrets.SNAPCRAFT_TOKEN }}
8590 # 上传 Snap 包到 Snapcraft 商店
8691 - name : Publish Snap to Snap Store
You can’t perform that action at this time.
0 commit comments