Skip to content

Commit 792c7a7

Browse files
committed
fix: 修改打包
1 parent 24ad7d6 commit 792c7a7

File tree

6 files changed

+7885
-10619
lines changed

6 files changed

+7885
-10619
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,22 @@ jobs:
3131
uses: actions/setup-node@v4
3232
with:
3333
node-version: 22
34-
cache: 'npm'
34+
cache: 'pnpm'
35+
36+
- name: Install pnpm
37+
uses: pnpm/action-setup@v4
38+
with:
39+
version: 10
40+
run_install: false
41+
42+
- name: Enable corepack
43+
run: corepack enable
3544

3645
- name: Install dependencies
37-
run: npm ci
46+
run: pnpm install --frozen-lockfile
3847

3948
- name: Build Electron App
40-
run: npm run build
49+
run: pnpm run build
4150
env:
4251
BUILD_PLATFORM: ${{ matrix.build_target }}
4352
# For universal mac build, tell electron-builder to produce universal binaries

builder.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ const config = {
5757
arch: ["universal"],
5858
},
5959
],
60-
macUniversal: {
61-
mergeASARs: true,
62-
},
6360
},
6461
// MAC Store
6562
mas: {

0 commit comments

Comments
 (0)