From ce754f700411b9dde28547f26459696a2bc1e342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=BC=80=E5=8F=91?= Date: Tue, 19 May 2026 12:49:48 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E7=A7=81=E9=92=A5=E5=86=99=E5=85=A5?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=89=8D=20strip=20=E6=8E=89=E5=89=8D?= =?UTF-8?q?=E5=90=8E=E7=A9=BA=E7=99=BD=EF=BC=8C=E4=BF=AE=E5=A4=8D=E9=A6=96?= =?UTF-8?q?=E5=AD=97=E8=8A=82=E6=8D=A2=E8=A1=8C=E7=AC=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07ce386..24d4c00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,7 +102,7 @@ jobs: DMG_PATH=$(ls src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg | head -1) rm -f "${DMG_PATH}.sig" # 用 python 将私钥写入文件,避免 shell heredoc 缩进问题 - python3 -c "import os; open('/tmp/private.key','w').write(os.environ['TAURI_SIGNING_PRIVATE_KEY'])" + python3 -c "import os; open('/tmp/private.key','w').write(os.environ['TAURI_SIGNING_PRIVATE_KEY'].strip())" npx tauri signer sign -f /tmp/private.key -p "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD" "$DMG_PATH" rm -f /tmp/private.key env: