mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 21:01:32 +08:00
- Updated version in package.json to 1.6.0-beta.4. - Revised release notes in electron-builder.yml to reflect new features, improvements, and bug fixes, including API key rotation, AWS Bedrock support, and enhanced file processing capabilities.
145 lines
5.7 KiB
YAML
145 lines
5.7 KiB
YAML
appId: com.kangfenmao.CherryStudio
|
||
productName: Cherry Studio
|
||
electronLanguages:
|
||
- zh-CN
|
||
- zh-TW
|
||
- en-US
|
||
- ja # macOS/linux/win
|
||
- ru # macOS/linux/win
|
||
- zh_CN # for macOS
|
||
- zh_TW # for macOS
|
||
- en # for macOS
|
||
directories:
|
||
buildResources: build
|
||
|
||
protocols:
|
||
- name: Cherry Studio
|
||
schemes:
|
||
- cherrystudio
|
||
files:
|
||
- '**/*'
|
||
- '!**/{.vscode,.yarn,.yarn-lock,.github,.cursorrules,.prettierrc}'
|
||
- '!electron.vite.config.{js,ts,mjs,cjs}}'
|
||
- '!**/{.eslintignore,.eslintrc.js,.eslintrc.json,.eslintcache,root.eslint.config.js,eslint.config.js,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,eslint.config.mjs,dev-app-update.yml,CHANGELOG.md,README.md}'
|
||
- '!**/{.env,.env.*,.npmrc,pnpm-lock.yaml}'
|
||
- '!**/{tsconfig.json,tsconfig.tsbuildinfo,tsconfig.node.json,tsconfig.web.json}'
|
||
- '!**/{.editorconfig,.jekyll-metadata}'
|
||
- '!src'
|
||
- '!scripts'
|
||
- '!local'
|
||
- '!docs'
|
||
- '!packages'
|
||
- '!.swc'
|
||
- '!.bin'
|
||
- '!._*'
|
||
- '!*.log'
|
||
- '!stats.html'
|
||
- '!*.md'
|
||
- '!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}'
|
||
- '!**/*.{map,ts,tsx,jsx,less,scss,sass,css.d.ts,d.cts,d.mts,md,markdown,yaml,yml}'
|
||
- '!**/{test,tests,__tests__,powered-test,coverage}/**'
|
||
- '!**/{example,examples}/**'
|
||
- '!**/*.{spec,test}.{js,jsx,ts,tsx}'
|
||
- '!**/*.min.*.map'
|
||
- '!**/*.d.ts'
|
||
- '!**/dist/es6/**'
|
||
- '!**/dist/demo/**'
|
||
- '!**/amd/**'
|
||
- '!**/{.DS_Store,Thumbs.db,thumbs.db,__pycache__}'
|
||
- '!**/{LICENSE,license,LICENSE.*,*.LICENSE.txt,NOTICE.txt,README.md,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}'
|
||
- '!node_modules/selection-hook/prebuilds/**/*' # we rebuild .node, don't use prebuilds
|
||
- '!node_modules/selection-hook/node_modules' # we don't need what in the node_modules dir
|
||
- '!node_modules/selection-hook/src' # we don't need source files
|
||
- '!node_modules/tesseract.js-core/{tesseract-core.js,tesseract-core.wasm,tesseract-core.wasm.js}' # we don't need source files
|
||
- '!node_modules/tesseract.js-core/{tesseract-core-lstm.js,tesseract-core-lstm.wasm,tesseract-core-lstm.wasm.js}' # we don't need source files
|
||
- '!node_modules/tesseract.js-core/{tesseract-core-simd-lstm.js,tesseract-core-simd-lstm.wasm,tesseract-core-simd-lstm.wasm.js}' # we don't need source files
|
||
- '!**/*.{h,iobj,ipdb,tlog,recipe,vcxproj,vcxproj.filters,Makefile,*.Makefile}' # filter .node build files
|
||
asarUnpack:
|
||
- resources/**
|
||
- '**/*.{metal,exp,lib}'
|
||
win:
|
||
executableName: Cherry Studio
|
||
artifactName: ${productName}-${version}-${arch}-setup.${ext}
|
||
target:
|
||
- target: nsis
|
||
- target: portable
|
||
signtoolOptions:
|
||
sign: scripts/win-sign.js
|
||
verifyUpdateCodeSignature: false
|
||
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}
|
||
buildUniversalInstaller: false
|
||
mac:
|
||
entitlementsInherit: build/entitlements.mac.plist
|
||
notarize: false
|
||
artifactName: ${productName}-${version}-${arch}.${ext}
|
||
minimumSystemVersion: '20.1.0' # 最低支持 macOS 11.0
|
||
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
|
||
- target: deb
|
||
- target: rpm
|
||
maintainer: electronjs.org
|
||
category: Utility
|
||
desktop:
|
||
entry:
|
||
StartupWMClass: CherryStudio
|
||
mimeTypes:
|
||
- x-scheme-handler/cherrystudio
|
||
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: |
|
||
🎉 新增功能:
|
||
- 新增 API 密钥轮换功能,支持提供商的智能密钥管理
|
||
- 新增 AWS Bedrock 提供商支持,扩展云端AI服务生态
|
||
- 增强文件处理能力,支持图像文件和更多文档类型的智能识别
|
||
- 新增文件大小限制检查和回退机制,提升文件处理稳定性
|
||
|
||
🔧 优化改进:
|
||
- 重构 AI Core 类型系统,整合流文本参数定义,增强类型安全性
|
||
- 优化思考块渲染逻辑,提升界面响应速度和用户体验
|
||
- 重构 VertexAI 配置架构,将配置检查逻辑移至合适位置
|
||
- 改进代码注释和文档说明,提升代码可维护性
|
||
- 增强提供商配置验证机制,添加完整性检查
|
||
|
||
🐛 问题修复:
|
||
- 修复文件数据和媒体类型提取逻辑,确保正确处理 base64 数据和 MIME 类型
|
||
- 修复 Google Vertex AI 导入路径和函数命名一致性问题
|
||
- 修复提供商配置空值检查,增强错误处理机制
|
||
- 修复模型标识符在图像生成测试中的问题
|
||
|
||
⚡ 性能提升:
|
||
- 优化文件处理流程,添加模型支持检查,避免不必要的处理
|
||
- 提升类型定义复用性,减少重复代码和内存占用
|
||
- 改进日志记录机制,提供更详细的文件处理状态信息
|