-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
46 lines (46 loc) · 1.9 KB
/
Copy pathelectron-builder.yml
File metadata and controls
46 lines (46 loc) · 1.9 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
appId: com.botmux.desktop
productName: Botmux
artifactName: ${productName}-${version}-mac-${arch}.${ext}
npmRebuild: false
extraMetadata:
main: dist/desktop/main.cjs
asar: true
files:
- dist/desktop/**
- '!node_modules/**'
extraResources:
- from: build/desktop-runtime
to: runtime
- from: build/desktop-node
to: node
afterPack: build/after-pack.cjs
mac:
icon: build/icon.png
# Both per-arch builds intentionally carry both bundled Node/runtime trees.
# Keep those already architecture-qualified Mach-O files instead of asking
# @electron/universal to lipo identical copies a second time.
#
# The glob must match the INSTALLED layout. `prepare-desktop-runtime.mjs` builds
# this tree with `bun install`, so packages land flat at
# `node_modules/<name>/…` (verified: the canvas natives are at
# `node_modules/@napi-rs/canvas-<platform>/…node`).
#
# A glob that matches nothing does NOT error — it would silently stop excluding
# these files and let universal try to lipo them. So this pattern is asserted in
# test/desktop/desktop-bundled-runtime.test.ts rather than trusted.
#
# NOTE: this deliberately does NOT try to also cover pnpm's old nested
# `node_modules/.pnpm/<name>@<ver>/…` layout. `**` cannot reach it: x64ArchFiles
# is a minimatch pattern and minimatch does not match dotfiles unless `dot:true`
# is passed (it isn't), so `.pnpm` is invisible to it. Covering that layout would
# need `.pnpm/**` spelled out explicitly — pointless now that nothing installs
# this tree with pnpm. If the installer ever changes again, re-verify the match
# instead of assuming `**` is broad enough.
x64ArchFiles: 'Contents/Resources/{node/**,runtime/node_modules/**}'
category: public.app-category.developer-tools
hardenedRuntime: true
gatekeeperAssess: false
entitlements: build/entitlements.mac.plist
entitlementsInherit: build/entitlements.mac.plist
dmg:
sign: false