* chore(electron-builder): Disable universal installer option in NSIS configuration * refactor(after-build): Change file handling to delete files with spaces and rename files in YAML data - Updated the function to delete files containing spaces instead of renaming them. - Enhanced YAML processing to rename files and their blockmaps, ensuring proper handling of setup and portable versions. - Adjusted the final YAML output to reflect the new file names. * refactor(after-build): Simplify file renaming logic and remove space handling script - Updated the after-build script to rename artifact files by replacing spaces with hyphens. - Removed the replace-spaces.js script as its functionality is now integrated into the after-build process. - Adjusted the build process in package.json to reflect the changes in file handling. * refactor(electron-builder): Update artifact build script reference and remove obsolete after-build script - Changed the artifactBuildCompleted script reference in electron-builder.yml to point to the new script. - Deleted the outdated after-build.js script, which is no longer needed for file handling. * delete js-yml
87 lines
2.8 KiB
YAML
87 lines
2.8 KiB
YAML
appId: com.kangfenmao.CherryStudio
|
|
productName: Cherry Studio
|
|
electronLanguages:
|
|
- zh-CN
|
|
- zh-TW
|
|
- en-GB
|
|
- en-US
|
|
- ru
|
|
directories:
|
|
buildResources: build
|
|
files:
|
|
- '!{.vscode,.yarn,.github}'
|
|
- '!electron.vite.config.{js,ts,mjs,cjs}'
|
|
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
|
|
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
|
|
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
|
|
- '!src'
|
|
- '!scripts'
|
|
- '!local'
|
|
- '!docs'
|
|
- '!packages'
|
|
- '!stats.html'
|
|
- '!*.md'
|
|
- '!**/*.{map,ts,tsx,jsx,less,scss,sass,css.d.ts,d.cts,d.mts,md,markdown,yaml,yml}'
|
|
- '!**/{test,tests,__tests__,coverage}/**'
|
|
- '!**/*.{spec,test}.{js,jsx,ts,tsx}'
|
|
- '!**/*.min.*.map'
|
|
- '!**/*.d.ts'
|
|
- '!**/{.DS_Store,Thumbs.db}'
|
|
- '!**/{LICENSE,LICENSE.txt,LICENSE-MIT.txt,*.LICENSE.txt,NOTICE.txt,README.md,CHANGELOG.md}'
|
|
- '!node_modules/rollup-plugin-visualizer'
|
|
- '!node_modules/js-tiktoken'
|
|
- '!node_modules/@tavily/core/node_modules/js-tiktoken'
|
|
- '!node_modules/pdf-parse/lib/pdf.js/{v1.9.426,v1.10.88,v2.0.550}'
|
|
- '!node_modules/mammoth/{mammoth.browser.js,mammoth.browser.min.js}'
|
|
asarUnpack:
|
|
- resources/**
|
|
- '**/*.{metal,exp,lib}'
|
|
win:
|
|
executableName: Cherry Studio
|
|
artifactName: ${productName}-${version}-${arch}-setup.${ext}
|
|
target:
|
|
- target: nsis
|
|
- target: portable
|
|
nsis:
|
|
artifactName: ${productName}-${version}-${arch}-setup.${ext}
|
|
shortcutName: ${productName}
|
|
uninstallDisplayName: ${productName}
|
|
createDesktopShortcut: always
|
|
allowToChangeInstallationDirectory: true
|
|
oneClick: false
|
|
include: build/nsis-installer.nsh
|
|
buildUniversalInstaller: false
|
|
portable:
|
|
artifactName: ${productName}-${version}-${arch}-portable.${ext}
|
|
mac:
|
|
entitlementsInherit: build/entitlements.mac.plist
|
|
notarize: false
|
|
artifactName: ${productName}-${version}-${arch}.${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.
|
|
target:
|
|
- target: dmg
|
|
- target: zip
|
|
linux:
|
|
artifactName: ${productName}-${version}-${arch}.${ext}
|
|
target:
|
|
- target: AppImage
|
|
maintainer: electronjs.org
|
|
category: Utility
|
|
publish:
|
|
provider: generic
|
|
url: https://releases.cherry-ai.com
|
|
electronDownload:
|
|
mirror: https://npmmirror.com/mirrors/electron/
|
|
afterPack: scripts/after-pack.js
|
|
afterSign: scripts/notarize.js
|
|
artifactBuildCompleted: scripts/artifact-build-completed.js
|
|
releaseInfo:
|
|
releaseNotes: |
|
|
全新图标风格
|
|
新的智能体界面
|
|
WebDAV 增加文件管理功能
|