-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
61 lines (61 loc) · 2.37 KB
/
Copy pathelectron-builder.yml
File metadata and controls
61 lines (61 loc) · 2.37 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
appId: com.deepseek.dsh
productName: DeepSeek Harness
# Relative to the repo root (the app dir).
directories:
output: dist-desktop/release
# Only the Electron main/preload go into asar; the backend closure ships as
# real files under resources/ so Cordis's runtime bare-imports resolve.
files:
- src/main.cjs
- src/ensure-cli-shim.cjs
- src/preload.cjs
- package.json
extraResources:
- from: dist-desktop/backend
to: backend
filter:
- '**/*'
- '!node_modules'
# electron-builder hard-excludes any `node_modules` directly under a
# matcher root (app-builder-lib out/util/filter.js), regardless of filter
# patterns. Mapping node_modules as its own from-root sidesteps that rule;
# nested node_modules inside packages still match '**/*' and are copied.
# The npm ci layout is flat with real files at the top level, so no symlink
# materialization is needed.
- from: dist-desktop/backend/node_modules
to: backend/node_modules
filter:
- '**/*'
# dsh CLI PATH helpers, shared by the NSIS installer (build/installer.nsh)
# and the app's launch-time self-heal (src/ensure-cli-shim.cjs).
- from: build/cli
to: cli
asar: true
# Do NOT rebuild native modules for Electron's ABI: the backend runs under the
# user's standalone Node, not Electron's. Keeping extraResources untouched
# preserves the Node ABI the prebuilt addons were built against.
nodeGypRebuild: false
npmRebuild: false
# Arch comes from the invoking CLI flag (--x64 / --arm64; scripts/
# build-desktop-installer.mjs always passes it, matching the closure's --arch).
# A bare `electron-builder` run defaults to the host architecture.
win:
target: nsis
mac:
target:
- dmg
- zip
# Local unsigned DMGs are buildable without a certificate; set CSC_LINK /
# CSC_KEY_PASSWORD (or configure identity) for a signed release build.
category: public.app-category.developer-tools
# Arch in the artifact name: users pick the right download by arch.
artifactName: ${productName}-${version}-${arch}.${ext}
nsis:
# Seeds the dsh CLI shims + user PATH entry; see build/installer.nsh.
include: build/installer.nsh
# Arch in the artifact name: installers land in dist-desktop/release/win32/
# <arch> and users pick the right download by arch.
artifactName: ${productName}-${version}-${arch}-setup.${ext}
oneClick: false
perMachine: false
allowToChangeInstallationDirectory: true