File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -285,37 +285,7 @@ jobs:
285285 prerelease : false
286286 args : ${{ matrix.args }}
287287
288- - name : Notarize app (macOS only)
289- if : matrix.platform == 'macos-latest'
290- env :
291- APPLE_ID : ${{ secrets.APPLE_ID }}
292- APPLE_PASSWORD : ${{ secrets.APPLE_PASSWORD }}
293- APPLE_TEAM_ID : ${{ secrets.APPLE_TEAM_ID }}
294- run : |
295- # 获取构建的 app 路径
296- APP_PATH="src-tauri/target/${{ matrix.args == '--target aarch64-apple-darwin' && 'aarch64-apple-darwin' || matrix.args == '--target x86_64-apple-darwin' && 'x86_64-apple-darwin' || '' }}/release/bundle/macos/NoteGen.app"
297-
298- if [ -f "$APP_PATH" ]; then
299- echo "🔐 开始公证 $APP_PATH"
300-
301- # 使用 xcrun notarytool 进行公证(更快)
302- # 设置 10 分钟超时
303- timeout 600 xcrun notarytool submit "$APP_PATH" \
304- --apple-id "$APPLE_ID" \
305- --password "$APPLE_PASSWORD" \
306- --team-id "$APPLE_TEAM_ID" \
307- --wait \
308- --output-format json || echo "⚠️ 公证超时,但代码签名已完成"
309-
310- # 获取公证结果并附加票据
311- echo "📎 附加公证票据"
312- xcrun stapler staple "$APP_PATH"
313-
314- echo "✅ 公证完成"
315- else
316- echo "❌ 找不到应用文件: $APP_PATH"
317- fi
318-
288+
319289 - name : Generate release tag
320290 id : save_tag
321291 if : matrix.platform == 'ubuntu-24.04'
You can’t perform that action at this time.
0 commit comments