forked from CherryHQ/cherry-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
187 lines (182 loc) · 7.89 KB
/
electron-builder.yml
File metadata and controls
187 lines (182 loc) · 7.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
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
- de
directories:
buildResources: build
protocols:
- name: Cherry Studio
schemes:
- cherrystudio
files:
- "**/*"
- "!**/{.vscode,.yarn,.yarn-lock,.github,.cursorrules,.prettierrc}"
- "!electron.vite.config.{js,ts,mjs,cjs}}"
- "!.*"
- "!components.json"
- "!**/{.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,biome.jsonc}"
- "!**/{.env,.env.*,.npmrc,pnpm-lock.yaml}"
- "!**/{tsconfig.json,tsconfig.tsbuildinfo,tsconfig.node.json,tsconfig.web.json}"
- "!**/{.editorconfig,.jekyll-metadata}"
- "!src"
- "!config"
- "!patches"
- "!app-upgrade-config.json"
- "!**/node_modules/**/*.cpp"
- "!**/node_modules/node-addon-api/**"
- "!**/node_modules/prebuild-install/**"
- "!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
- "resources/**/*" # include all files in resources, and unpack them from asar for runtime access
asarUnpack:
- out/proxy/**
- resources/**
- "**/*.{metal,exp,lib}"
- "node_modules/@img/sharp-*/**"
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
differentialPackage: false
portable:
artifactName: ${productName}-${version}-${arch}-portable.${ext}
buildUniversalInstaller: false
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
dmg:
writeUpdateInfo: false
linux:
artifactName: ${productName}-${version}-${arch}.${ext}
executableName: CherryStudio
target:
- target: AppImage
- target: deb
- target: rpm
maintainer: electronjs.org
category: Utility
desktop:
entry:
Name: Cherry Studio
StartupWMClass: CherryStudio
mimeTypes:
- x-scheme-handler/cherrystudio
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.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: |
<!--LANG:en-->
Cherry Studio 1.9.3 - Bug Fixes & Improvements
🐛 Bug Fixes
- [Web Search] Fix built-in web search repeatedly running and consuming excessive tokens
- [Backup] Fix Windows backup failures caused by symlinks in the Data directory
- [UI] Fix horizontal multi-model message scrolling issue on card edges
- [Models] Add support for OpenAI's gpt-image-2 model
- [MCP] Fix MCP SSE/streamableHttp servers timing out during initialization
- [AI Core] Fix native tool-call conversations stopping after first execution
- [Bedrock] Fix AWS Bedrock requests failing when API Host is blank
- [Agents] Fix agent skills page scroll position reset when toggling skills
- [Feishu] Restore image message support from Feishu/Lark bot users
- [Proxy Providers] Fix structured output error with Claude models through AiHubMix/NewAPI
- [API Server] Fix API server failing for providers with comma-separated API keys
- [Agents] Fix Soul Mode dropping user-provided session instructions
- [File Upload] Support case-insensitive file extensions for drag-and-drop uploads
- [Deep Links] Fix "Open in VS Code/Cursor/Zed" buttons being blocked
- [Proxy Providers] Fix custom parameters not being passed for CherryIN/NewAPI
- [Claude Code] Fix Claude Code failing to launch on all platforms
- [Quick Panel] Fix model deselection bug when pasting messages with "@"
<!--LANG:zh-CN-->
Cherry Studio 1.9.3 - 错误修复与改进
🐛 问题修复
- [网络搜索] 修复内置网络搜索重复运行并消耗过多 token 的问题
- [备份] 修复 Windows 平台因 Data 目录中的符号链接导致备份失败的问题
- [UI] 修复水平多模型消息卡片边缘滚动问题
- [模型] 添加对 OpenAI gpt-image-2 模型的支持
- [MCP] 修复 MCP SSE/streamableHttp 服务器初始化超时问题
- [AI 核心] 修复原生工具调用对话在首次执行后停止的问题
- [Bedrock] 修复 AWS Bedrock 在 API Host 为空时请求失败的问题
- [智能体] 修复切换技能时技能页面滚动位置重置的问题
- [飞书] 恢复飞书/Lark 机器人用户的图片消息接收功能
- [代理服务商] 修复通过 AiHubMix/NewAPI 调用 Claude 模型时的结构化输出错误
- [API 服务器] 修复使用逗号分隔 API 密钥的服务商在 API 服务器中失败的问题
- [智能体] 修复灵魂模式丢弃用户提供的会话指令的问题
- [文件上传] 支持拖放上传时不区分大小写的文件扩展名
- [深度链接] 修复"在 VS Code/Cursor/Zed 中打开"按钮被阻止的问题
- [代理服务商] 修复 CherryIN/NewAPI 自定义参数未传递的问题
- [Claude Code] 修复 Claude Code 在所有平台上无法启动的问题
- [快速面板] 修复粘贴包含"@"的消息时模型取消选择的 bug
<!--LANG:END-->