|
9 | 9 | env: |
10 | 10 | NODE_VERSION: 22.x |
11 | 11 | PNPM_VERSION: 10 |
12 | | - SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} |
| 12 | + # SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} |
13 | 13 |
|
14 | 14 | jobs: |
15 | 15 | # =================================================================== |
@@ -92,32 +92,36 @@ jobs: |
92 | 92 | sudo apt-get install --no-install-recommends -y libarchive-tools && |
93 | 93 | sudo apt-get install --no-install-recommends -y libopenjp2-tools |
94 | 94 | # 安裝 Snapcraft |
95 | | - - name: Install Snapcraft |
| 95 | + # - name: Install Snapcraft |
| 96 | + # if: runner.os == 'Linux' |
| 97 | + # uses: samuelmeuli/action-snapcraft@v2 |
| 98 | + # 尝试修复权限问题 |
| 99 | + - name: Fix Permission |
96 | 100 | if: runner.os == 'Linux' |
97 | | - uses: samuelmeuli/action-snapcraft@v2 |
| 101 | + run: chmod +x ./node_modules/app-builder-bin/linux/x64/app-builder |
98 | 102 | # 构建 Electron App |
99 | 103 | - name: Build Windows x64 & ARM64 App |
100 | 104 | if: runner.os == 'Windows' |
101 | | - run: pnpm build:win || true |
| 105 | + run: pnpm build:win |
102 | 106 | env: |
103 | 107 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
104 | 108 | - name: Build macOS Universal App |
105 | 109 | if: runner.os == 'macOS' |
106 | | - run: pnpm build:mac || true |
| 110 | + run: pnpm build:mac |
107 | 111 | shell: bash |
108 | 112 | env: |
109 | 113 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
110 | 114 | - name: Build Linux x64 & ARM64 App |
111 | 115 | if: runner.os == 'Linux' |
112 | | - run: pnpm build:linux || true |
| 116 | + run: pnpm build:linux |
113 | 117 | shell: bash |
114 | 118 | env: |
115 | 119 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
116 | 120 | # 上传 Snap 包到 Snapcraft 商店 |
117 | | - - name: Publish Snap to Snap Store |
118 | | - if: runner.os == 'Linux' |
119 | | - run: snapcraft upload dist/*.snap --release stable |
120 | | - continue-on-error: true |
| 121 | + # - name: Publish Snap to Snap Store |
| 122 | + # if: runner.os == 'Linux' |
| 123 | + # run: snapcraft upload dist/*.snap --release stable |
| 124 | + # continue-on-error: true |
121 | 125 | # 合并所有构建 |
122 | 126 | - name: Upload Artifact |
123 | 127 | uses: actions/upload-artifact@v4 |
@@ -148,7 +152,7 @@ jobs: |
148 | 152 | with: |
149 | 153 | token: ${{ secrets.GITHUB_TOKEN }} |
150 | 154 | # 自动生成 Release 说明 |
151 | | - generate_release_notes: true |
| 155 | + # generate_release_notes: true |
152 | 156 | # 发布为草稿 |
153 | 157 | draft: false |
154 | 158 | # 发布为预发布 |
|
0 commit comments