chore(desktop): reorganize electron-builder config and refine packaging targets
This commit is contained in:
@@ -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
|
||||
appId: com.furtherverse.app
|
||||
appId: com.furtherverse.desktop
|
||||
productName: Furtherverse
|
||||
executableName: furtherverse
|
||||
|
||||
npmRebuild: false
|
||||
asarUnpack:
|
||||
- resources/**
|
||||
|
||||
files:
|
||||
- "!**/.vscode/*"
|
||||
- "!src/*"
|
||||
@@ -8,21 +14,28 @@ files:
|
||||
- "!{.env,.env.*,bun.lock}"
|
||||
- "!{tsconfig.json,tsconfig.node.json}"
|
||||
- "!{AGENTS.md,README.md,CHANGELOG.md}"
|
||||
asarUnpack:
|
||||
- resources/**
|
||||
win:
|
||||
extraResources:
|
||||
- from: ../server/out/server-windows-x64.exe
|
||||
to: server.exe
|
||||
nsis:
|
||||
artifactName: ${productName}-${version}-setup.${ext}
|
||||
|
||||
# macOS
|
||||
mac:
|
||||
target:
|
||||
- dmg
|
||||
category: public.app-category.productivity
|
||||
extraResources:
|
||||
- from: ../server/out/server-darwin-arm64
|
||||
to: server
|
||||
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:
|
||||
target:
|
||||
- AppImage
|
||||
@@ -31,5 +44,4 @@ linux:
|
||||
- from: ../server/out/server-linux-x64
|
||||
to: server
|
||||
appImage:
|
||||
artifactName: ${productName}-${version}.${ext}
|
||||
npmRebuild: false
|
||||
artifactName: ${productName}-${version}-${os}-${arch}.${ext}
|
||||
|
||||
Reference in New Issue
Block a user