Created
May 7, 2023 10:55
-
-
Save Ishu1998/4df344d3c851066f876d171c3900ae7f to your computer and use it in GitHub Desktop.
Sample Electron Builder Config File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appId: eclipse.theia | |
productName: TheiaBlueprint | |
copyright: Copyright © 2020-2022 Eclipse Foundation, Inc | |
electronDist: ../../node_modules/electron/dist | |
electronVersion: 23.3.0 | |
# Although it is generally not recommended to disable asar, it is required for Theia. | |
# Enabling this leads to: process ERROR Error: spawn ENOTDIR | |
# because binaries can not be executed from the asar archive. | |
# See asar file API limitations: https://www.electronjs.org/docs/tutorial/application-packaging#limitations-of-the-node-api | |
asar: false | |
nodeGypRebuild: false | |
npmRebuild: false | |
directories: | |
buildResources: resources | |
# node_modules and package.json are copied automatically | |
# Copying node_modules must be automatic for correct resolvement of binaries. | |
# Furthermore, This reduces bundle sizes significantly because it avoids duplicates of the electron runtime. | |
files: | |
- src-gen | |
- lib | |
- scripts | |
- "!**node_modules/electron/**" | |
extraResources: | |
- from: plugins | |
to: app/plugins | |
win: | |
icon: resources/icons/WindowsLauncherIcon/TheiaBluePrint.ico | |
target: | |
- nsis | |
publish: | |
provider: generic | |
url: "https://download.eclipse.org/theia/${version}/windows" | |
useMultipleRangeRequest: false | |
mac: | |
icon: resources/icons/MacLauncherIcon/512-512-2.icns | |
category: public.app-category.developer-tools | |
darkModeSupport: true | |
target: | |
- dmg | |
- zip | |
publish: | |
provider: generic | |
url: "https://download.eclipse.org/theia/latest/macos" | |
linux: | |
icon: resources/icons/LinuxLauncherIcon/512-512.png | |
category: Development | |
vendor: Eclipse Foundation, Inc | |
target: | |
- deb | |
- AppImage | |
publish: | |
provider: generic | |
url: "https://download.eclipse.org/theia/latest/linux" | |
nsis: | |
menuCategory: true | |
oneClick: false | |
perMachine: false | |
installerHeaderIcon: resources/icons/WindowsLauncherIcon/TheiaBluePrint.ico | |
installerIcon: resources/icons/WindowsLauncherIcon/TheiaBluePrint.ico | |
uninstallerIcon: resources/icons/WindowsLauncherIcon/TheiaBluePrint.ico | |
installerSidebar: resources/icons/InstallerSidebarImage/164-314Windows.bmp | |
uninstallerSidebar: resources/icons/InstallerSidebarImage/164-314Windows.bmp | |
allowToChangeInstallationDirectory: true | |
runAfterFinish: false | |
artifactName: ${productName}.${ext} | |
license: LICENSE | |
dmg: | |
artifactName: ${productName}.${ext} | |
deb: | |
artifactName: ${productName}.${ext} | |
appImage: | |
artifactName: ${productName}.${ext} | |
afterPack: ./scripts/after-pack.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment