@@ -51,21 +51,15 @@ jobs:
5151 - os : windows-2022
5252 platform : win
5353 artifact_name : windows-build
54- build_command : build-win
5554 installer_command : build-win-installer
56- green_command : build-win-green
5755 - os : macos-14
5856 platform : mac
5957 artifact_name : macos-build
60- build_command : build-mac
6158 installer_command : build-mac-installer
62- green_command : build-mac-green
6359 - os : macos-15-intel
6460 platform : mac-x64
6561 artifact_name : macos-build-x64
66- build_command : build-mac-x64
6762 installer_command : build-mac-x64-installer
68- green_command : build-mac-x64-green
6963
7064 steps :
7165 - name : 准备代码
@@ -141,7 +135,7 @@ jobs:
141135 rm -f "$CERTIFICATE_PATH"
142136
143137 - name : 根据平台创建安装包
144- timeout-minutes : 60
138+ timeout-minutes : 75
145139 working-directory : ./desktop-client
146140 env :
147141 # 不传 CSC_LINK:使用上一步导入的钥匙串,避免再建缺 codesign: 的临时钥匙串
@@ -157,23 +151,6 @@ jobs:
157151 npm run ${{ matrix.installer_command }}
158152 shell : bash
159153
160- - name : 构建绿色安装包
161- if : matrix.green_command != 'null'
162- timeout-minutes : 60
163- working-directory : ./desktop-client
164- env :
165- CSC_IDENTITY_AUTO_DISCOVERY : ${{ startsWith(matrix.os, 'macos') && 'true' || 'false' }}
166- APPLE_ID : ${{ startsWith(matrix.os, 'macos') && secrets.APPLE_ID || '' }}
167- APPLE_APP_SPECIFIC_PASSWORD : ${{ startsWith(matrix.os, 'macos') && secrets.APPLE_APP_SPECIFIC_PASSWORD || '' }}
168- APPLE_TEAM_ID : ${{ startsWith(matrix.os, 'macos') && secrets.APPLE_TEAM_ID || '' }}
169- run : |
170- if [ -n "${KEYCHAIN_PATH:-}" ]; then
171- security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
172- security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
173- fi
174- npm run ${{ matrix.green_command }}
175- shell : bash
176-
177154 - name : 清理 macOS 签名钥匙串
178155 if : always() && startsWith(matrix.os, 'macos')
179156 run : |
@@ -194,14 +171,6 @@ jobs:
194171 path : desktop-client/dist/
195172 if-no-files-found : ignore
196173
197- - name : 上传绿色安装包构件
198- if : matrix.green_command != 'null'
199- uses : actions/upload-artifact@v4
200- with :
201- name : ${{ matrix.artifact_name }}-green
202- path : desktop-client/dist/*.zip
203- if-no-files-found : ignore
204-
205174 - name : 发布版本
206175 if : startsWith(github.ref, 'refs/tags/v')
207176 uses : softprops/action-gh-release@v1
@@ -212,7 +181,6 @@ jobs:
212181 desktop-client/dist/capcut-mate-windows-x64-installer.exe
213182 desktop-client/dist/capcut-mate-macos-arm64-installer.dmg
214183 desktop-client/dist/capcut-mate-macos-x64-installer.dmg
215- desktop-client/dist/*.zip
216184 overwrite : true
217185 env :
218186 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments