feat(desktop): add client release updater
Desktop Client Build / Resolve Build Metadata (push) Successful in 19s
Frontend CI / Frontend (push) Successful in 3m20s
Backend CI / Backend (push) Successful in 16m48s
Desktop Client Build / Build Desktop Client (push) Successful in 24m46s
Desktop Client Build / Publish Client Artifacts to NAS (push) Successful in 37s

This commit is contained in:
2026-05-25 19:23:49 +08:00
parent 41b4a765ac
commit 5f6e9f11da
46 changed files with 5508 additions and 160 deletions
+28 -26
View File
@@ -8,37 +8,37 @@ compression: maximum
removePackageScripts: true
removePackageKeywords: true
asar: true
afterPack: build/afterPack.cjs # 签名前裁掉非 en/zh_CN 的本地化文件
afterPack: build/afterPack.cjs # 签名前裁掉非 en/zh_CN 的本地化文件
asarUnpack:
- "**/node_modules/better-sqlite3/build/Release/**"
- "**/node_modules/better-sqlite3/lib/**"
- "**/node_modules/bindings/**"
- "**/node_modules/file-uri-to-path/**"
- "**/node_modules/playwright-core/lib/**"
- "**/node_modules/playwright-core/bin/**"
- '**/node_modules/better-sqlite3/build/Release/**'
- '**/node_modules/better-sqlite3/lib/**'
- '**/node_modules/bindings/**'
- '**/node_modules/file-uri-to-path/**'
- '**/node_modules/playwright-core/lib/**'
- '**/node_modules/playwright-core/bin/**'
files:
- out/**/*
- package.json
- "!**/*.map"
- "!**/*.ts"
- "!**/*.tsx"
- "!**/*.md"
- "!**/*.markdown"
- "!**/{test,tests,__tests__,__mocks__,example,examples,docs,doc,demo,samples,man}/**"
- "!**/{LICENSE,LICENSE.*,license,CHANGELOG,CHANGELOG.*,README,README.*,HISTORY,HISTORY.*,AUTHORS,CONTRIBUTING}*"
- "!**/.*"
- "!**/node_modules/.bin/**"
- "!**/node_modules/*/{Makefile,Gulpfile.js,Gruntfile.js,CMakeLists.txt,*.coffee,*.flow,*.c,*.cc,*.cpp,*.h,*.hpp,*.gyp,*.gypi,*.tgz,binding.gyp}"
- "!**/node_modules/**/{*.d.ts,tsconfig*.json,jest.config*,rollup.config*,webpack.config*,vite.config*}"
- "!**/node_modules/better-sqlite3/{deps,src,docs,benchmark}/**"
- "!**/node_modules/better-sqlite3/{test_extension.c,download.sh,*.gyp,*.gypi}"
- "!**/node_modules/playwright-core/{types,ThirdPartyNotices.txt}/**"
- "!**/node_modules/**/*.{c,cc,cpp,h,hpp,cmake,m4,am,sh}"
- '!**/*.map'
- '!**/*.ts'
- '!**/*.tsx'
- '!**/*.md'
- '!**/*.markdown'
- '!**/{test,tests,__tests__,__mocks__,example,examples,docs,doc,demo,samples,man}/**'
- '!**/{LICENSE,LICENSE.*,license,CHANGELOG,CHANGELOG.*,README,README.*,HISTORY,HISTORY.*,AUTHORS,CONTRIBUTING}*'
- '!**/.*'
- '!**/node_modules/.bin/**'
- '!**/node_modules/*/{Makefile,Gulpfile.js,Gruntfile.js,CMakeLists.txt,*.coffee,*.flow,*.c,*.cc,*.cpp,*.h,*.hpp,*.gyp,*.gypi,*.tgz,binding.gyp}'
- '!**/node_modules/**/{*.d.ts,tsconfig*.json,jest.config*,rollup.config*,webpack.config*,vite.config*}'
- '!**/node_modules/better-sqlite3/{deps,src,docs,benchmark}/**'
- '!**/node_modules/better-sqlite3/{test_extension.c,download.sh,*.gyp,*.gypi}'
- '!**/node_modules/playwright-core/{types,ThirdPartyNotices.txt}/**'
- '!**/node_modules/**/*.{c,cc,cpp,h,hpp,cmake,m4,am,sh}'
mac:
category: public.app-category.productivity
# identity 不写死:让 electron-builder 自动从 CSC_NAME 环境变量或钥匙串里挑
# 注意:写 `identity: null` 是"明确不签名",不要这么写
notarize: false # 我们用 notarytool 自己跑,比 electron-builder 内置更稳
notarize: false # 我们用 notarytool 自己跑,比 electron-builder 内置更稳
hardenedRuntime: true
gatekeeperAssess: false
entitlements: build/entitlements.mac.plist
@@ -57,8 +57,8 @@ mac:
target:
- target: dmg
arch: [arm64, universal]
# - target: zip
# arch: [arm64, universal]
- target: zip
arch: [arm64, universal]
dmg:
format: ULFO
contents:
@@ -82,4 +82,6 @@ linux:
target:
- target: AppImage
arch: [x64]
publish: null
publish:
provider: generic
url: https://api.shengxintui.com/api/desktop/releases/updater/stub/universal/stable/0.0.0