Repository navigation
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
188 lines (176 loc) · 6.89 KB
/
Copy pathelectron-builder.yml
File metadata and controls
188 lines (176 loc) · 6.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
188
appId: com.chatonsteroids.app
productName: Chat On Steroids
copyright: MIT licensed
directories:
output: release
buildResources: build
# Only built output + runtime dependencies ship. Native prebuilds are narrowed again in each
# platform section so a package never carries another OS/CPU's executable payload.
files:
- out/**
- package.json
- '!node_modules/@img/sharp-*/**/*'
- '!node_modules/@img/sharp-libvips-*/**/*'
- '!node_modules/@koromix/koffi-*/**/*'
- '!node_modules/koffi/build/**/*'
# PDF.js is bundled into the renderer (including its worker). Its optional @napi-rs/canvas
# dependency is a Node-only fallback and is neither imported nor needed by the Electron UI.
- '!node_modules/pdfjs-dist/**/*'
- '!node_modules/@napi-rs/canvas/**/*'
- '!node_modules/@napi-rs/canvas-*/**/*'
# node-pty prefers build/Release over prebuilds. npm may leave a host-native build there,
# which would silently override the target prebuild in a cross-arch package.
- '!node_modules/node-pty/build/**/*'
- '!node_modules/node-pty/third_party/**/*'
- '!node_modules/node-pty/prebuilds/**/*'
- '!node_modules/tree-sitter/prebuilds/**/*'
- '!node_modules/tree-sitter-bash/prebuilds/**/*'
# Common real-filesystem resources. Platform-specific tunnel/rg/native notices are appended
# below because their filenames and executable formats differ by OS.
extraResources:
- from: LICENSE
to: LICENSE
- from: THIRD-PARTY-NOTICES.txt
to: THIRD-PARTY-NOTICES.txt
- from: node_modules/electron/dist/LICENSE
to: LICENSE.electron.txt
- from: node_modules/electron/dist/LICENSES.chromium.html
to: LICENSES.chromium.html
- from: pets
to: pets
filter:
- '*/pet.json'
- '*/atlas.png'
- '*/animations.json'
- from: extension
to: extension
filter:
- '**/*'
- '!**/*.map'
npmRebuild: false
# macOS only; a no-op on every other platform. See the hook and the mac.identity note below.
afterPack: scripts/afterpack-macos-adhoc-seal.mjs
asarUnpack:
- '**/node_modules/@koromix/koffi-*/**'
- '**/node_modules/node-pty/**'
- '**/node_modules/sharp/**'
- '**/node_modules/@img/**'
- '**/node_modules/tree-sitter/**'
- '**/node_modules/tree-sitter-bash/**'
compression: maximum
# electron-builder 26 defaults to the legacy FUSE2 AppImage runtime. Ubuntu 24.04 renamed
# libfuse2 to libfuse2t64 and does not install it by default, so use builder's static runtime
# toolset instead. This keeps the standalone AppImage actually portable on the release target.
toolsets:
appimage: "1.0.3"
win:
target: nsis
icon: build/icon.ico
requestedExecutionLevel: asInvoker
files:
- from: resources/packaging/native/win32/${arch}/node_modules
to: node_modules
filter: ['**/*']
extraResources:
- from: resources/packaging/native/win32/${arch}/node_modules/@img/sharp-win32-${arch}/README.md
to: THIRD-PARTY-NOTICES-sharp-win32-${arch}.md
- from: resources/packaging/tunnel/win32/${arch}
to: tunnel
filter: ['**/*']
- from: resources/packaging/rg/win32/${arch}
to: rg
filter: ['**/*']
nsis:
include: scripts/windows-installer-acl.nsh
# Drawn by scripts/make-icon.mjs from the app icon: the installer an update shows is CoS's own.
installerHeader: build/installerHeader.bmp
installerSidebar: build/installerSidebar.bmp
oneClick: false
perMachine: false
buildUniversalInstaller: false
allowToChangeInstallationDirectory: true
createDesktopShortcut: true
createStartMenuShortcut: true
shortcutName: Chat On Steroids
artifactName: Chat-On-Steroids-Setup-${arch}.${ext}
uninstallDisplayName: Chat On Steroids
deleteAppDataOnUninstall: false
mac:
target:
- dmg
- zip
icon: build/icon.png
category: public.app-category.developer-tools
minimumSystemVersion: "13.0"
extendInfo:
NSUserNotificationAlertStyle: alert
NSScreenCaptureUsageDescription: Chat On Steroids captures a display or window only when the enabled Desktop connector asks to observe it.
NSLocalNetworkUsageDescription: Chat On Steroids connects to devices and services on your local network when you run approved tools or commands.
# v2.0.2 intentionally ships unsigned/unnotarized macOS artifacts. Make that policy
# deterministic instead of depending on whatever identities or Apple env vars happen to be
# present on a hosted runner. Remove these two lines when real signing credentials are wired.
#
# Unsigned still has to mean *coherent*. Every arm64 Mach-O is ad-hoc signed by the linker
# whether anyone asks or not, so skipping bundle signing shipped an app whose executables
# claimed a resource seal the bundle did not have; macOS calls that damaged and refuses to
# launch it (issue #66). afterPack re-seals ad-hoc — no Authority, no TeamIdentifier, still
# nothing Gatekeeper will vouch for — and verifies the result.
identity: null
notarize: false
artifactName: Chat-On-Steroids-macOS-${arch}.${ext}
files:
- from: resources/packaging/native/darwin/${arch}/node_modules
to: node_modules
filter: ['**/*']
extraResources:
- from: resources/packaging/desktop/darwin/${arch}
to: desktop
filter: ['macos-desktop-addon.node', 'libcos-desktop.dylib']
- from: resources/packaging/native/darwin/${arch}/node_modules/@img/sharp-libvips-darwin-${arch}/README.md
to: THIRD-PARTY-NOTICES-sharp-libvips-darwin-${arch}.md
- from: resources/packaging/tunnel/darwin/${arch}
to: tunnel
filter: ['**/*']
- from: resources/packaging/rg/darwin/${arch}
to: rg
filter: ['**/*']
linux:
target:
- AppImage
- deb
icon: build/icon.png
category: Development
executableName: chat-on-steroids
maintainer: Chat On Steroids <227782719+totec448-spec@users.noreply.github.com>
syncDesktopName: true
# electron-builder rewrites x64 to x86_64 for AppImage and amd64 for DEB when ${arch}
# is used. Keep one stable public architecture label across formats/releases instead.
artifactName: Chat-On-Steroids-Linux-${env.COS_PACKAGE_ARCH}.${ext}
files:
- from: resources/packaging/native/linux/${arch}/node_modules
to: node_modules
filter: ['**/*']
extraResources:
- from: build/runtime-icon.png
to: runtime-icon.png
- from: resources/packaging/native/linux/${arch}/node_modules/@img/sharp-libvips-linux-${arch}/README.md
to: THIRD-PARTY-NOTICES-sharp-libvips-linux-${arch}.md
- from: resources/packaging/tunnel/linux/${arch}
to: tunnel
filter: ['**/*']
- from: resources/packaging/rg/linux/${arch}
to: rg
filter: ['**/*']
deb:
depends:
# Ubuntu 24.04 renamed GTK 3's runtime package for the time64 transition. Keep the old
# package as an alternative so the same .deb remains installable on Ubuntu 22.04/Debian.
- libgtk-3-0 | libgtk-3-0t64
- libnotify4
- libnss3
- libxss1
- libxtst6
- xdg-utils
- libatspi2.0-0 | libatspi2.0-0t64
- libuuid1
- libsecret-1-0