Skip to content

Commit 2e63a58

Browse files
committed
Merge branch 'dev': 修复 CI 图标 LFS 未拉取导致的打包失败
2 parents b884aba + a47bda1 commit 2e63a58

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
os: [windows-latest]
4747
runs-on: ${{ matrix.os }}
4848
steps:
49+
# lfs: true 必需:app-icon.png 等 PNG 由 Git LFS 托管(.gitattributes:
50+
# *.png filter=lfs),不拉取则仅为 131 字节指针文件,
51+
# electron-builder 图标转换(PNG→ICO)解码失败,
52+
# 报 ERR_ELECTRON_BUILDER_CANNOT_EXECUTE。
4953
- uses: actions/checkout@v4
50-
# Windows Defender 实时扫描会锁住刚生成的 Electron exe,导致紧随的
51-
# app-builder rcedit(写入版本号/图标)拿不到写句柄 →
52-
# ERR_ELECTRON_BUILDER_CANNOT_EXECUTE。排除 workspace 解除该锁。
53-
- name: Exclude workspace from Windows Defender
54-
if: runner.os == 'Windows'
55-
run: Add-MpPreference -ExclusionPath "${{ github.workspace }}"
54+
with:
55+
lfs: true
5656
- uses: actions/setup-node@v4
5757
with:
5858
node-version: 20

0 commit comments

Comments
 (0)