-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
154 lines (136 loc) · 3.84 KB
/
electron-builder.yml
File metadata and controls
154 lines (136 loc) · 3.84 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
appId: com.githave.app
productName: GitHave
directories:
buildResources: build
# ✅ 自定义协议注册(打包安装后生效)
protocols:
- name: GitHave URL
schemes:
- githave
files:
- 'bin/.env'
- 'bin/watermark.png'
- 'bin/watermark.svg'
- 'bin/static/**/*'
- 'bin/FAISSService/**/*'
- '!bin/FAISSService/.env/**'
- '!bin/FAISSService/.env'
- 'bin/NotoSerifSC-VariableFont_wght.ttf'
- 'resources/**/*'
- '!**/.vscode/*'
- '!**/.idea/*'
- '!**/.gitgo/*'
- '!src/*'
- '!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}'
- 'out/**/*'
- 'public/**/*'
asar: true
asarUnpack:
- resources/**
- 'bin/.env'
- 'bin/watermark.png'
- 'bin/watermark.svg'
- 'bin/static/**/*'
- 'bin/FAISSService/**/*'
- '!bin/FAISSService/.env/**'
- '!bin/FAISSService/.env'
- 'bin/NotoSerifSC-VariableFont_wght.ttf'
- 'public/**/*'
win:
target:
- target: nsis
arch:
- x64
- ia32
compression: maximum
executableName: GitHave
files:
- 'bin/app.exe'
- 'bin/bot.exe'
- 'bin/config.yaml'
- 'bin/fm.yaml'
- 'bin/fm_http.exe'
asarUnpack:
- 'bin/app.exe'
- 'bin/bot.exe'
- 'bin/config.yaml'
- 'bin/fm.yaml'
- 'bin/fm_http.exe'
nsis:
artifactName: ${name}-${version}-setup-${arch}.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
# (可选)如果你想让注册表写在 HKLM 以覆盖所有用户,可启用 perMachine
# perMachine: true
mac:
# ⚠ 如需三份产物请写三种架构
target:
- target: dmg
# arch: universal
# arch: x64
# arch: arm64
# arch: [ x64, arm64, universal ]
arch: [ x64, arm64 ]
- target: zip
arch: [ x64, arm64 ]
compression: maximum
category: public.app-category.developer-tools
files:
- 'bin/app'
- 'bin/bot'
- 'bin/config.yaml'
- 'bin/fm'
- 'bin/fm.yaml'
- 'bin/fm_http'
asarUnpack:
- 'bin/app'
- 'bin/bot'
- 'bin/config.yaml'
- 'bin/fm'
- 'bin/fm.yaml'
- 'bin/fm_http'
# ✅ 修正:extendInfo 必须是字典(不是数组),否则可能导致 Info.plist 写入异常,从而影响 URL 处理
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.
entitlementsInherit: build/entitlements.mac.plist
notarize: false
# (如要更稳,建议后续开启硬化+公证)
# hardenedRuntime: true
# gatekeeperAssess: false
# notarize: true
dmg:
artifactName: ${name}-${version}-${arch}.${ext}
linux:
target:
- AppImage
- snap
- deb
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
publish:
provider: github
owner: 'kinglegendzzh'
repo: 'githave'
releaseType: 'release'
releaseInfo:
releaseNotes: |
## GitHave-v1.0.0 更新日志
1. 修复Windows下Pandoc无法一键安装、强制homebrew问题、托盘退出回显等问题;
2. 修复ollama本地模型构建索引失败的问题;
3. 新增支持推理最大并发数、嵌入最大并发数、数据库写入重试策略、LLM响应超时时间的配置;
4. 支持自动更新/发布流水线;
5. 修复Windows系统下无法一键导入GitHub仓库的问题。
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/
extraResources:
- from: "src/renderer/skeleton.html"
to: "renderer/skeleton.html"