Skip to content

Commit 4df14cb

Browse files
committed
新增:恢复自动打包
1 parent 1644a9b commit 4df14cb

4 files changed

Lines changed: 22 additions & 8 deletions

File tree

.github/workflows/main-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
strategy:
1414
matrix:
1515
include:
16-
# - os: ubuntu-latest
17-
# arch: [arm64, amd64]
16+
- os: ubuntu-latest
17+
arch: [arm64, amd64]
1818
- os: macos-latest
1919
arch: [arm64, amd64]
20-
# - os: windows-latest
21-
# arch: [arm64, amd64]
20+
- os: windows-latest
21+
arch: [arm64, amd64]
2222

2323
steps:
2424
- name: Checkout Code
@@ -67,6 +67,7 @@ jobs:
6767
- name: Build Release Files
6868
run: npm run build
6969
env:
70+
DEBUG: "electron-notarize:*"
7071
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7172
APPLE_ID: ${{ secrets.APPLE_ID }}
7273
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}

.github/workflows/tag-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
strategy:
1313
matrix:
1414
include:
15-
# - os: ubuntu-latest
16-
# arch: [arm64, amd64]
15+
- os: ubuntu-latest
16+
arch: [arm64, amd64]
1717
- os: macos-latest
1818
arch: [arm64, amd64]
1919
- os: windows-latest
@@ -66,6 +66,7 @@ jobs:
6666
- name: Build Release Files
6767
run: npm run build
6868
env:
69+
DEBUG: "electron-notarize:*"
6970
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7071
APPLE_ID: ${{ secrets.APPLE_ID }}
7172
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}

electron-builder.json5

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@
126126
"role": "Editor"
127127
}
128128
],
129+
"electronLanguages": [
130+
"zh-CN",
131+
"en-US"
132+
],
129133
"type": "development",
130134
"notarize": false,
131135
"darkModeSupport": false,
@@ -181,5 +185,5 @@
181185
}
182186
]
183187
},
184-
"afterSign": "./scripts/notarize.cjs",
188+
// "afterSign": "./scripts/notarize.cjs",
185189
}

scripts/notarize.cjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,13 @@ exports.default = async function notarizing(context) {
3131
verbose: true,
3232
}
3333
console.log(` • Notarizing`, `appPath:${appPath} notarizeOption:${JSON.stringify(notarizeOption)}`);
34-
return await notarize(notarizeOption);
34+
try {
35+
const result = await notarize(notarizeOption);
36+
console.log(" • Notarization successful!");
37+
return result;
38+
} catch (error) {
39+
console.error(" • Notarization failed:", error.message);
40+
console.error(" • Stack trace:", error.stack);
41+
}
42+
3543
};

0 commit comments

Comments
 (0)