-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
80 lines (71 loc) · 2 KB
/
Copy pathelectron-builder.yml
File metadata and controls
80 lines (71 loc) · 2 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
appId: com.exptech.trem-lite
productName: TREM-Lite
copyright: Copyright © 2026 ExpTech Studio
artifactName: ${productName}-${version}-${os}-${arch}.${ext}
directories:
output: dist
extraMetadata:
main: ./src/main.js
compression: maximum
asar: true
asarUnpack:
- "**/*.mp3"
# cloudflared 是要被 child_process.spawn 執行的執行檔,不能留在 asar 虛擬檔案系統
# 裡面(沒辦法直接執行 asar 內的二進位檔),要解壓縮到 app.asar.unpacked 底下。
- "node_modules/cloudflared/**"
files:
- "**/*"
# 獨立部署到 Vercel 的中繼伺服器,不屬於桌面 App 本體
- "!relay-server/**"
# Source maps & dev files
- "!**/*.{map,ts,md,txt}"
- "!**/{LICENSE,CHANGELOG,README}*"
- "!**/.{eslint,prettier}*"
- "!**/tsconfig.json"
# node_modules cleanup
- "!node_modules/**/{test,tests,__tests__,docs,doc,example,examples,demo,.github}/**"
# maplibre-gl
- "!node_modules/maplibre-gl/dist/*-dev.js*"
# moment (unused locales)
- "!node_modules/moment/{locale,min/locales*,min/moment-with-locales*}/**"
afterPack: scripts/afterPack.js
win:
appId: tw.exptech.trem_lite
icon: ./src/TREM.ico
verifyUpdateCodeSignature: false
protocols:
- name: TREM Lite Protocol
schemes: [trem-lite]
target:
- target: nsis
arch: [x64, ia32]
nsis:
perMachine: false
allowToChangeInstallationDirectory: false
deleteAppDataOnUninstall: false
mac:
icon: ./src/TREM.png
category: public.app-category.productivity
hardenedRuntime: true
gatekeeperAssess: false
entitlements: assets/entitlements.mac.plist
entitlementsInherit: assets/entitlements.mac.plist
protocols:
- name: TREM Lite Protocol
schemes: [trem-lite]
target:
- target: dmg
arch: [x64, arm64]
- target: zip
arch: [x64, arm64]
linux:
icon: ./src/TREM.png
category: Development
protocols:
- name: TREM Lite Protocol
schemes: [trem-lite]
target:
- target: AppImage
arch: [x64, arm64]
- target: deb
arch: [x64, arm64]