Files
helder/electron-builder.yml

45 lines
1.6 KiB
YAML

appId: com.blijnder.helder
productName: Helder
directories:
output: dist
buildResources: build
# The renderer/main/preload are already bundled into out/ by electron-vite.
files:
- out/**
- package.json
# Native / spawned binaries must live outside the asar to load at runtime.
# The rg binary ships in a platform package (@vscode/ripgrep-<platform>-<arch>),
# so that must be unpacked too — not just the @vscode/ripgrep shim.
asarUnpack:
- '**/node_modules/node-pty/**'
- '**/node_modules/@vscode/ripgrep/**'
- '**/node_modules/@vscode/ripgrep-*/**'
# Ad-hoc signs the .app on macOS. Without it the bundle keeps only Electron's
# linker signature, seals no resources, and macOS blocks it as malware.
afterPack: build/adhoc-sign.cjs
mac:
category: public.app-category.developer-tools
target:
- dmg
- zip
# Local/unsigned build: ad-hoc signed by electron-builder, no notarization.
identity: null
artifactName: ${productName}-${version}-${arch}.${ext}
files:
# Keep the cross-build leftovers (see win:) out of the mac package.
- '!**/node_modules/@vscode/ripgrep-win32-*/**'
win:
target: nsis
# Cross-built from macOS with `-c.npmRebuild=false`: node-pty can't be
# cross-compiled, but it ships prebuilds/win32-* and its loader falls back
# to those when build/Release is absent. The win32 rg binary is provided by
# manually extracting @vscode/ripgrep-win32-x64 into node_modules (npm
# refuses to install it on darwin).
files:
- '!**/node_modules/node-pty/build/**'
- '!**/node_modules/@vscode/ripgrep-darwin-*/**'
- '!**/node_modules/@vscode/ripgrep-linux-*/**'
linux:
target: AppImage
category: Development