// @see https://www.electron.build/configuration/configuration { "$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json", "appId": "IP", "publish": { "provider": "generic", "url": "https://xiazaigengxin-1417293730.cos.ap-guangzhou.myqcloud.com/updates" }, "asar": true, "asarUnpack": [ "scripts/**/*" ], "npmRebuild": true, "productName": "天英超级IP智能体", "directories": { "output": "dist-release-final", "buildResources": "packaging/build-resources" }, "afterPack": "./scripts/build_optimize.cjs", "files": [ "dist", "dist-electron", "node_modules", { "from": "demo", "to": "demo", "filter": [ "*.md", "*.html" ] }, { "from": "scripts", "to": "scripts", "filter": [ "**/*", "!local-auth-server.cjs" ] }, "!server/**/*", "!admin-panel/**/*", "!local-auth-data/**/*" ], "win": { icon: "packaging/build-resources/logo.ico", "target": [ { "target": "nsis", "arch": [ "x64" ] } ], "artifactName": "${productName}-${version}-win-${arch}.${ext}", "extraResources": [ { "from": "packaging/resources", "to": "extra", "filter": [ "common/config/**/*", "common/default-config.json", "common/resource-manifest.json", "common/cover-templates/**/*", "common/shuiziren/**/*", "common/soundEffects/**/*" ] }, { "from": "packaging/vendor/playwright", "to": "resources-bundles/playwright" }, { "from": "packaging/vendor/python-runtime", "to": "resources-bundles/python-runtime" }, { "from": "packaging/vendor/ffmpeg", "to": "resources-bundles/ffmpeg" }, { "from": "packaging/resources/common/soundEffects", "to": "resources-bundles/soundEffects" }, { "from": "packaging/vendor/models", "to": "resources-bundles/models" }, { "from": "packaging/vendor/fonts", "to": "resources-bundles/fonts" }, { "from": "packaging/vendor/ziti", "to": "resources-bundles/ziti" }, { "from": "packaging/vendor/bgm", "to": "resources-bundles/bgm" }, { "from": "packaging/resources/voice-preview-cache", "to": "voice-preview-cache" }, { "from": "packaging/build-resources", "to": "build", "filter": [ "tray.png", "tray.ico", "logo.png", "logo.ico", "vc_redist.x64.exe" ] } ] }, "nsis": { "artifactName": "${productName}-${version}-win-setup-${arch}.${ext}", "shortcutName": "${productName}", "uninstallDisplayName": "${productName}", "oneClick": false, "perMachine": false, "allowToChangeInstallationDirectory": true, "deleteAppDataOnUninstall": false, "differentialPackage": true, "include": "scripts/installer.nsh", "warningsAsErrors": false, "runAfterFinish": true, "allowElevation": true, "installerIcon": "packaging/build-resources/logo.ico", "uninstallerIcon": "packaging/build-resources/logo.ico", "installerHeaderIcon": "packaging/build-resources/logo.ico" }, "appx": { "identityName": "IP", "publisher": "CN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX", "publisherDisplayName": "天英超级IP智能体", "languages": [ "zh-CN", "en-US", "zh-TW" ] }, "mac": { "icon": "packaging/build-resources/logo.icns", "target": [ { "target": "dir", "arch": [ "x64", "arm64" ] } ], "artifactName": "${productName}-${version}-mac-${arch}.${ext}", "extraResources": [ { "from": "packaging/resources", "to": "extra", "filter": [ "common", "osx" ] }, { "from": "packaging/resources/voice-preview-cache", "to": "voice-preview-cache" } ], "x64ArchFiles": "Contents/Resources/extra/**/*", "entitlementsInherit": "./entitlements.mac.plist", "entitlements": "./entitlements.mac.plist", "extendInfo": { "NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder.", "NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder." }, "type": "development", "notarize": false, "darkModeSupport": false, "hardenedRuntime": true, "identity": "Xi'an Yanyi Information Technology Co., Ltd (Q96H3H33RK)" }, "linux": { "icon": "packaging/build-resources/logo.icns", "desktop": "logo", "maintainer": "天英超级IP智能体", "category": "Utility", "target": [ { "target": "AppImage", "arch": [ "x64", "arm64" ] }, { "target": "deb", "arch": [ "x64", "arm64" ] } ], "artifactName": "${productName}-${version}-linux-${arch}.${ext}", "extraResources": [ { "from": "packaging/resources", "to": "extra", "filter": [ "common", "linux" ] }, { "from": "packaging/resources/voice-preview-cache", "to": "voice-preview-cache" } ] }, "afterSign": "./scripts/notarize.cjs" }