Skip to content

Commit 76f2555

Browse files
committed
Merge branch 'dev-perf' into dev
2 parents d693bfa + b51786c commit 76f2555

2 files changed

Lines changed: 19 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
NODE_VERSION: 22.x
1111
PNPM_VERSION: 10
12-
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
12+
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
1313

1414
jobs:
1515
# ===================================================================
@@ -92,32 +92,36 @@ jobs:
9292
sudo apt-get install --no-install-recommends -y libarchive-tools &&
9393
sudo apt-get install --no-install-recommends -y libopenjp2-tools
9494
# 安裝 Snapcraft
95-
- name: Install Snapcraft
95+
# - name: Install Snapcraft
96+
# if: runner.os == 'Linux'
97+
# uses: samuelmeuli/action-snapcraft@v2
98+
# 尝试修复权限问题
99+
- name: Fix Permission
96100
if: runner.os == 'Linux'
97-
uses: samuelmeuli/action-snapcraft@v2
101+
run: chmod +x ./node_modules/app-builder-bin/linux/x64/app-builder
98102
# 构建 Electron App
99103
- name: Build Windows x64 & ARM64 App
100104
if: runner.os == 'Windows'
101-
run: pnpm build:win || true
105+
run: pnpm build:win
102106
env:
103107
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104108
- name: Build macOS Universal App
105109
if: runner.os == 'macOS'
106-
run: pnpm build:mac || true
110+
run: pnpm build:mac
107111
shell: bash
108112
env:
109113
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110114
- name: Build Linux x64 & ARM64 App
111115
if: runner.os == 'Linux'
112-
run: pnpm build:linux || true
116+
run: pnpm build:linux
113117
shell: bash
114118
env:
115119
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116120
# 上传 Snap 包到 Snapcraft 商店
117-
- name: Publish Snap to Snap Store
118-
if: runner.os == 'Linux'
119-
run: snapcraft upload dist/*.snap --release stable
120-
continue-on-error: true
121+
# - name: Publish Snap to Snap Store
122+
# if: runner.os == 'Linux'
123+
# run: snapcraft upload dist/*.snap --release stable
124+
# continue-on-error: true
121125
# 合并所有构建
122126
- name: Upload Artifact
123127
uses: actions/upload-artifact@v4
@@ -148,7 +152,7 @@ jobs:
148152
with:
149153
token: ${{ secrets.GITHUB_TOKEN }}
150154
# 自动生成 Release 说明
151-
generate_release_notes: true
155+
# generate_release_notes: true
152156
# 发布为草稿
153157
draft: false
154158
# 发布为预发布

electron-builder.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ const config: Configuration = {
153153
arch: ["x64", "arm64"],
154154
},
155155
// Snap 包管理器(仅支持 x64 架构)
156-
{
157-
target: "snap",
158-
arch: ["x64"],
159-
},
156+
// {
157+
// target: "snap",
158+
// arch: ["x64"],
159+
// },
160160
// 压缩包格式
161161
{
162162
target: "tar.gz",

0 commit comments

Comments
 (0)