Files
cherry-studio/electron-builder.yml
T
kangfenmao 8b6682c325 feat: enterprise version
feat: enterprise version

feat: enhance login functionality and UI improvements

- Added last login method tracking in the auth state to remember user preferences.
- Updated the login page to support switching between SSO and password login modes, improving user experience.
- Enhanced UI elements, including background image and button styles, for a more modern look.
- Introduced a new chat item in the launchpad with appropriate styling.
- Added translations for the new chat feature across multiple languages.

chore: update @cherrystudio/api-sdk to version 0.0.43 and refactor related code

- Updated the dependency version of @cherrystudio/api-sdk from 0.0.41 to 0.0.43 in package.json and yarn.lock.
- Refactored code in format.ts and index.ts to replace references from Agent to Assistant for improved clarity and consistency in the sync process.
- Adjusted function names and parameters accordingly to reflect the changes in the data model.

chore: upgrade api-sdk

refactor: mcp server edit

chore: upgrade api-sdk

chore: upgrade api-sdk

chore: remove outdated GitHub workflows and Dependabot configuration

- Deleted the Dependabot configuration file to streamline dependency management.
- Removed the dispatch-docs-update workflow, which was no longer needed for release documentation updates.

refactor: remove AGENT.md and enhance custom parameters formatting

- Deleted the AGENT.md file as it was no longer needed.
- Added a new function to format custom parameters in the sync service, improving the handling of assistant settings.
- Updated the formatAssistant function to include formatted custom parameters.

fix: sync mcp servers

feat: enhance user profile settings and internationalization

- Integrated server URL display in the user profile settings.
- Updated logout confirmation messages to use enterprise-specific translations.
- Refactored login page to utilize enterprise translations for error messages and placeholders, improving localization support across multiple languages.

chore(version): 1.5.61

refactor: update MCPToolsButton color logic and adjust knowledge recognition default

- Simplified the color logic for the MCPToolsButton based on the presence of MCP servers.
- Changed the default value of knowledge recognition from 'on' to 'off' in ApiService.
- Updated minApps state management to conditionally include logos based on server status.
- Enhanced sync settings to include new preprocess provider configurations and proxy settings.

chore: update enterprise protocol and version

- Changed protocol name from 'cherrystudio' to 'cherrystudio-enterprise' in electron-builder configuration and related files.
- Updated application version to 1.5.111 in package.json.

feat: add support for webview proxy configuration

- Introduced a new IPC channel `App_ProxyForWebview` to handle proxy settings specifically for webview sessions.
- Updated `ProxyManager` to manage webview proxy settings, ensuring that the proxy is applied only when necessary.
- Enhanced the preload API to include a method for setting the webview proxy.
- Updated the sync settings functionality to synchronize webview proxy settings from user preferences.

feat: enhance protocol handling for Cherry Studio

- Added support for the new `CHERRY_STUDIO_ENTERPRISE_PROTOCOL` in the application.
- Updated URL handling to recognize both `CHERRY_STUDIO_PROTOCOL` and `CHERRY_STUDIO_ENTERPRISE_PROTOCOL`.
- Modified the default protocol client registration to include the new enterprise protocol.
2025-09-22 14:04:21 +08:00

142 lines
5.2 KiB
YAML

appId: com.cherry-ai.cherry-stuido-enterprise
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}'
- 'node_modules/@img/sharp-libvips-*/**'
win:
executableName: Cherry Studio 企业版
artifactName: Cherry-Studio-Enterprise-${version}-${arch}-setup.${ext}
target:
- target: nsis
# - target: portable
signtoolOptions:
sign: scripts/win-sign.js
verifyUpdateCodeSignature: false
nsis:
artifactName: Cherry-Studio-Enterprise-${version}-${arch}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
allowToChangeInstallationDirectory: true
oneClick: false
include: build/nsis-installer.nsh
buildUniversalInstaller: false
mac:
entitlementsInherit: build/entitlements.mac.plist
notarize: false
artifactName: Cherry-Studio-Enterprise-${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: Cherry-Studio-Enterprise-${version}-${arch}.${ext}
target:
- target: AppImage
- target: deb
- target: rpm
maintainer: electronjs.org
category: Utility
desktop:
entry:
StartupWMClass: CherryStudio
mimeTypes:
- x-scheme-handler/cherrystudio-enterprise
rpm:
# Workaround for electron build issue on rpm package:
# https://github.com/electron/forge/issues/3594
fpm: ['--rpm-rpmbuild-define=_build_id_links none']
publish:
provider: generic
url: https://releases.enterprise.cherry-ai.com
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/
beforePack: scripts/before-pack.js
afterPack: scripts/after-pack.js
afterSign: scripts/notarize.js
artifactBuildCompleted: scripts/artifact-build-completed.js
releaseInfo:
releaseNotes: |
✨ 重要更新:
- 新增标签页拖拽重新排序功能
- 增强笔记编辑器同步功能
- 链接预览支持解析 OG 数据
- 新增"重试失败消息"按钮
🔧 性能优化:
- 优化 MCP 服务日志和错误处理
- 改进构建配置和依赖管理
- 增强 Linux 系统 OCR 构建支持
🐛 修复问题:
- 修复翻译功能相关问题
- 修复 MCP 服务相关问题
- 修复导航和标签页显示问题
- 修复 Obsidian 集成检测
- 其他界面和稳定性改进