forked from InkTimeRecord/TTime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-builder.yml
62 lines (62 loc) · 2.41 KB
/
electron-builder.yml
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
appId: com.ttime.app
productName: TTime
directories:
buildResources: build
files:
- '!**/.vscode/*'
- '!src/*'
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
- '!README.assets/*'
- '!README.en.assets/*'
asarUnpack:
- '**/*.{node,dll}'
- '**/ocr/*.{onnx,txt}'
- '**/plugins/*.exe'
#asar:
# false
afterSign: build/notarize.js
win:
executableName: TTime
nsis:
artifactName: ${productName}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
include: build/builder-installer.nsh
# 创建桌面快捷方式
createDesktopShortcut: true
# 创建开始菜单快捷方式
createStartMenuShortcut: true
# 是否创建一键安装程序或辅助
oneClick: false
# 是否允许用户更改安装目录
allowToChangeInstallationDirectory: true
# 不显示安装模式页面 默认为使用这台电脑的任何人安装(所有用户)
perMachine: true
mac:
entitlementsInherit: build/entitlements.mac.plist
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.
# 配置不显示在 Dock(程序坞) 内
LSUIElement: 1
dmg:
artifactName: ${productName}-${version}-${arch}.${ext}
linux:
target:
- AppImage
- snap
- deb
maintainer: electronjs.org
category: Utility
appImage:
artifactName: ${productName}-${version}.${ext}
npmRebuild: false
publish:
provider: generic
url: https://update.timerecord.cn/pc/TTime/
releaseInfo:
releaseNotes: 1.新增内置小牛翻译源(无需配置密钥可直接使用)||2.新增OCR窗口(截图 -> 显示OCR窗口文字识别)||3.新增静默OCR(截图 -> 不显示OCR窗口后台识别 -> 识别完成自动写入剪贴板)||4.新增浮球显示后定时3秒自动关闭||5.新增可配置将OCR结果的 [ 换行符 ] 替换为 [ 空格 ]||6.功能性设置单独抽离到高级设置||7.修复鼠标悬浮球取词部分机型或设置了缩放比例情况下显示出错问题||8.修复DeepL翻译源验证时错误问题