chore(desktop): reorganize electron-builder config and refine packaging targets

This commit is contained in:
2026-02-09 03:15:01 +08:00
parent 5f0c9d33cb
commit 0bab6372ac

View File

@@ -1,6 +1,12 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/electron-userland/electron-builder/refs/heads/master/packages/app-builder-lib/scheme.json # yaml-language-server: $schema=https://raw.githubusercontent.com/electron-userland/electron-builder/refs/heads/master/packages/app-builder-lib/scheme.json
appId: com.furtherverse.app appId: com.furtherverse.desktop
productName: Furtherverse productName: Furtherverse
executableName: furtherverse
npmRebuild: false
asarUnpack:
- resources/**
files: files:
- "!**/.vscode/*" - "!**/.vscode/*"
- "!src/*" - "!src/*"
@@ -8,21 +14,28 @@ files:
- "!{.env,.env.*,bun.lock}" - "!{.env,.env.*,bun.lock}"
- "!{tsconfig.json,tsconfig.node.json}" - "!{tsconfig.json,tsconfig.node.json}"
- "!{AGENTS.md,README.md,CHANGELOG.md}" - "!{AGENTS.md,README.md,CHANGELOG.md}"
asarUnpack:
- resources/** # macOS
win:
extraResources:
- from: ../server/out/server-windows-x64.exe
to: server.exe
nsis:
artifactName: ${productName}-${version}-setup.${ext}
mac: mac:
target:
- dmg
category: public.app-category.productivity category: public.app-category.productivity
extraResources: extraResources:
- from: ../server/out/server-darwin-arm64 - from: ../server/out/server-darwin-arm64
to: server to: server
dmg: dmg:
artifactName: ${productName}-${version}.${ext} artifactName: ${productName}-${version}-${os}-${arch}.${ext}
# Windows
win:
target: portable
extraResources:
- from: ../server/out/server-windows-x64.exe
to: server.exe
portable:
artifactName: ${productName}-${version}-${os}-${arch}-Portable.${ext}
# Linux
linux: linux:
target: target:
- AppImage - AppImage
@@ -31,5 +44,4 @@ linux:
- from: ../server/out/server-linux-x64 - from: ../server/out/server-linux-x64
to: server to: server
appImage: appImage:
artifactName: ${productName}-${version}.${ext} artifactName: ${productName}-${version}-${os}-${arch}.${ext}
npmRebuild: false