hydra/electron-builder.yml

138 lines
3.8 KiB
YAML

appId: gg.hydralauncher.hydra
productName: Hydra
beforePack: scripts/legendary-before-pack.cjs
afterPack: scripts/legendary-after-pack.cjs
afterSign: scripts/legendary-after-pack.cjs
directories:
buildResources: build
extraResources:
- ludusavi
- hydra-native
- seeds
- from: node_modules/create-desktop-shortcuts/src/windows.vbs
- from: resources/achievement.wav
- from: "src/big-picture/src/assets/audio/Favorite Sound.wav"
to: chat-message.wav
files:
- "!.cache/**"
- "!legendary/**"
- "!resources/legendary/**"
- "!native/torrent-bridge/**"
- "!**/.vscode/*"
- "!src/*"
- "!native/hydra-native/target"
- "!native/hydra-native/target/**"
- "!native/epic-prerequisite-runner/**"
- "!binaries/epic-prerequisite-runner/**"
- "!electron.vite.config.{js,ts,mjs,cjs}"
- "!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}"
- "!{.env,.env.*,.npmrc,pnpm-lock.yaml}"
- "!{tsconfig.json,tsconfig.node.json,tsconfig.web.json,tsconfig.test.json}"
- "!scripts/register-ts-node.mjs"
asarUnpack:
- resources/**
- node_modules/sharp/**
- node_modules/@img/sharp-libvips-*/**
win:
executableName: Hydra
extraResources:
- from: legendary/win32/${arch}
to: legendary
filter:
- legendary.exe
- managed.py
- managed-legendary.pyz
- managed-native/**
- managed-runtime.json
- python/**
- hydra-epic-process.exe
- hydra-epic-process.json
- from: resources/legendary
to: legendary
filter:
- LICENSE
- NOTICE.md
- from: binaries/7z.exe
- from: binaries/7z.dll
target:
- nsis
- portable
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
oneClick: false
allowToChangeInstallationDirectory: true
include: installer.nsh
portable:
artifactName: ${name}-${version}-portable.${ext}
unpackDirName: false
mac:
sign: scripts/legendary-mac-sign.cjs
entitlementsInherit: build/entitlements.mac.plist
extraResources:
- from: legendary/darwin/${arch}
to: legendary
filter:
- legendary
- from: resources/legendary
to: legendary
filter:
- LICENSE
- NOTICE.md
- from: binaries/7zz
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: false
dmg:
artifactName: ${name}-${version}.${ext}
linux:
extraResources:
- from: binaries/epic-prerequisite-runner/x64
to: epic
filter:
- epic-prerequisite-runner.exe
- .build.json
- from: legendary/linux/${arch}
to: legendary
filter:
- legendary
- legendary.pyz
- managed.py
- managed-legendary.pyz
- managed-native/**
- managed-runtime.json
- python-runner
- python/**
- glibc/**
- licenses/**
- .runtime-files.json
- from: resources/legendary
to: legendary
filter:
- LICENSE
- NOTICE.md
- from: binaries/7zzs
- from: binaries/umu/umu-run
target:
- AppImage
- snap
- deb
- rpm
maintainer: electronjs.org
category: Game
mimeTypes:
- x-scheme-handler/hydralauncher
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
publish:
provider: github
owner: muriloscolari
repo: hydra
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/