multica/apps/desktop/electron-builder.json5
Jiang Bohan 0459769746 feat(desktop): add auto-update functionality
Implement one-click desktop auto-update with version checking, download progress, and automatic installation. Includes toast notification UI in bottom-right corner showing update status (checking, available, downloading, ready, or error).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-11 13:59:58 +08:00

72 lines
2.1 KiB
Text

// @see - https://www.electron.build/configuration/configuration
{
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
"appId": "com.multica.app",
"asar": true,
"productName": "Multica",
"directories": {
"buildResources": "build",
"output": "release/${version}"
},
"files": [
"out",
"!**/.vscode/*",
"!src/*",
"!electron.vite.config.{js,ts,mjs,cjs}",
"!{.eslintcache,eslint.config.mjs,.prettierignore,.prettierrc.yaml}",
"!{.env,.env.*,.npmrc}",
"!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}"
],
"mac": {
"hardenedRuntime": false,
"target": [
"dmg"
],
"artifactName": "${productName}-${version}-${arch}-mac.${ext}",
"extendInfo": {
"NSCameraUsageDescription": "Application requests access to the device's camera.",
"NSMicrophoneUsageDescription": "Application requests access to the device's microphone.",
"NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder.",
"NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder."
}
},
"dmg": {
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"win": {
"executableName": "multica",
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"artifactName": "${productName}-Windows-${version}-Setup.${ext}"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false,
"shortcutName": "${productName}",
"uninstallDisplayName": "${productName}",
"createDesktopShortcut": "always"
},
"linux": {
"target": [
"AppImage",
"deb"
],
"maintainer": "multica.ai",
"category": "Utility",
"artifactName": "${productName}-Linux-${version}.${ext}"
},
"npmRebuild": false,
"publish": {
"provider": "github",
"owner": "multica-ai",
"repo": "multica"
}
}