Skip to content

Commit a728d61

Browse files
committed
Add GitHub OAuth login. Users can manually transfer licenses.
1 parent 97b746c commit a728d61

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/macos-version-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
# 1. 还原 .p8 文件
5656
mkdir -p build
57-
echo -n "$AUTH_KEY_BASE64" | base64 --decode -o build/AuthKey_JTMT429KVA.p8
57+
echo -n "$AUTH_KEY_BASE64" | base64 --decode -o build/apple_api_key.p8
5858
5959
# 2. 创建临时钥匙串并导入证书
6060
CERT_PATH=$RUNNER_TEMP/build_cert.p12
@@ -87,7 +87,9 @@ jobs:
8787
CSC_KEY_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
8888
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
8989
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
90-
APPLE_API_KEY_PATH: ${{ github.workspace }}/build/AuthKey_JTMT429KVA.p8
90+
# 核心修复:electron-builder 寻找的是 APPLE_API_KEY
91+
APPLE_API_KEY: ${{ github.workspace }}/build/apple_api_key.p8
92+
APPLE_API_KEY_PATH: ${{ github.workspace }}/build/apple_api_key.p8
9193
run: yarn build
9294

9395
- name: Upload Artifacts

build/macos.build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 3
1+
version: 4

0 commit comments

Comments
 (0)