fix: 修复 macOS Chromium 签名与缓存保存

- 对 Chromium 内嵌的 Helper App、Framework 和外层应用执行递归签名,并改用临时清单传递路径,保留真实签名错误。

- 将 macOS Playwright runtime 缓存拆分为恢复和保存步骤,在 runtime 下载完成后立即写入缓存,并增加前缀回退键。
This commit is contained in:
Christ committed 2026-08-12 01:46:50 +08:00
1 parent 0bafa50dbf
commit fed5d582e7
2 files changed
+33 -11

No files matched your search

+12 -1
View File
@@ -215,12 +215,14 @@ jobs:
- name: 缓存 macOS Chromium runtime
id: cache-macos-playwright
uses: actions/cache@v6
uses: actions/cache/restore@v6
with:
path: |
dist/macos/playwright-runtime/arm64
dist/macos/playwright-runtime/amd64
key: ydisks-playwright-runtime-v1-macos-universal-${{ hashFiles('go.mod') }}
restore-keys: |
ydisks-playwright-runtime-v1-macos-universal-
- name: 预下载 macOS Chromium runtime
if: steps.cache-macos-playwright.outputs.cache-hit != 'true'
@@ -239,6 +241,15 @@ jobs:
-driver-dir "$PWD/dist/macos/playwright-runtime/amd64/playwright-driver" \
-browser-dir "$PWD/dist/macos/playwright-runtime/amd64/playwright-browsers"
- name: 保存 macOS Chromium runtime 缓存
if: steps.cache-macos-playwright.outputs.cache-hit != 'true'
uses: actions/cache/save@v6
with:
path: |
dist/macos/playwright-runtime/arm64
dist/macos/playwright-runtime/amd64
key: ${{ steps.cache-macos-playwright.outputs.cache-primary-key }}
- name: 导入 macOS 签名证书
env:
MACOS_SIGNING_P12_BASE64: ${{ secrets.MACOS_SIGNING_P12_BASE64 }}