Generate a 1024x1024 macOS app icon from the dashboard logo so packaged builds carry the Fusion brand instead of the default Electron icon, and load electron-updater dynamically inside a try/catch so packaged builds tolerate CJS/ESM interop quirks and missing transitive deps. Widen the electron-builder files whitelist to include electron-updater's transitive dep tree so they are actually bundled into the asar. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
86 lines
1.7 KiB
YAML
86 lines
1.7 KiB
YAML
appId: com.gsxdsm.fusion.desktop
|
|
productName: Fusion
|
|
artifactName: "${productName}-${version}-${os}-${arch}.${ext}"
|
|
|
|
directories:
|
|
output: dist-electron
|
|
buildResources: src/icons
|
|
|
|
files:
|
|
- dist/**/*
|
|
- package.json
|
|
- node_modules/@fusion/core/**/*
|
|
- node_modules/@fusion/dashboard/**/*
|
|
- node_modules/better-sqlite3/**/*
|
|
- node_modules/electron-updater/**/*
|
|
- node_modules/builder-util-runtime/**/*
|
|
- node_modules/fs-extra/**/*
|
|
- node_modules/jsonfile/**/*
|
|
- node_modules/graceful-fs/**/*
|
|
- node_modules/universalify/**/*
|
|
- node_modules/js-yaml/**/*
|
|
- node_modules/argparse/**/*
|
|
- node_modules/sprintf-js/**/*
|
|
- node_modules/lazy-val/**/*
|
|
- node_modules/lodash.escaperegexp/**/*
|
|
- node_modules/lodash.isequal/**/*
|
|
- node_modules/semver/**/*
|
|
- node_modules/tiny-typed-emitter/**/*
|
|
- node_modules/debug/**/*
|
|
- node_modules/ms/**/*
|
|
- node_modules/sax/**/*
|
|
|
|
asarUnpack:
|
|
- node_modules/better-sqlite3/**/*
|
|
|
|
extraMetadata:
|
|
main: dist/main.js
|
|
|
|
extraResources:
|
|
- from: src/icons
|
|
to: icons
|
|
filter:
|
|
- "tray-*.png"
|
|
|
|
protocols:
|
|
- name: Fusion Deep Links
|
|
schemes:
|
|
- fusion
|
|
|
|
fileAssociations:
|
|
- ext: fusion
|
|
name: Fusion Task Link
|
|
description: Fusion desktop deep link
|
|
role: Viewer
|
|
mimeType: x-scheme-handler/fusion
|
|
|
|
publish:
|
|
provider: github
|
|
owner: gsxdsm
|
|
repo: fusion
|
|
|
|
mac:
|
|
category: public.app-category.developer-tools
|
|
minimumSystemVersion: "10.15"
|
|
target:
|
|
- target: dmg
|
|
- target: zip
|
|
|
|
win:
|
|
target:
|
|
- target: nsis
|
|
- target: portable
|
|
|
|
nsis:
|
|
oneClick: false
|
|
perMachine: false
|
|
allowElevation: false
|
|
allowToChangeInstallationDirectory: true
|
|
|
|
linux:
|
|
category: Development
|
|
target:
|
|
- target: AppImage
|
|
- target: deb
|
|
- target: tar.gz
|