Skip to content

Commit 5061abe

Browse files
committed
Simplify electron-builder config a bit
We can simply tell it to unpack everything in the `bin` folder, since we already only include the binaries we need We can also use glob patters for the `files` option to include binaries for all architectures. Ideally we should figure out a way to only include the files for the arch we're building, but I don't think EB has an option for that
1 parent d6593c6 commit 5061abe

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

electron-builder.yml

+5-24
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ asarUnpack:
1515
- build/icon-dark.png
1616
- build/icon-light.png
1717
- build/webviewPreload.js
18+
- build/bin/**/*
19+
- '!build/bin/legendary.LICENSE'
1820

1921
electronDownload:
2022
mirror: https://github.com/castlabs/electron-releases/releases/download/v
@@ -27,12 +29,7 @@ protocols:
2729
win:
2830
artifactName: ${productName}-${version}-Setup-${arch}.${ext}
2931
icon: build/win_icon.ico
30-
asarUnpack:
31-
- build/bin/x64/win32/legendary.exe
32-
- build/bin/x64/win32/gogdl.exe
33-
- build/bin/x64/win32/nile.exe
34-
files:
35-
- build/bin/x64/win32/*
32+
files: build/bin/*/win32/*
3633

3734
portable:
3835
artifactName: ${productName}-${version}-Portable-${arch}.${ext}
@@ -47,16 +44,7 @@ mac:
4744
teamId: DLB2RYLUDX
4845
extendInfo:
4946
com.apple.security.cs.allow-jit: true
50-
asarUnpack:
51-
- build/bin/x64/darwin/legendary
52-
- build/bin/x64/darwin/gogdl
53-
- build/bin/x64/darwin/nile
54-
- build/bin/arm64/darwin/legendary
55-
- build/bin/arm64/darwin/gogdl
56-
- build/bin/arm64/darwin/nile
57-
files:
58-
- build/bin/x64/darwin/*
59-
- build/bin/arm64/darwin/*
47+
files: build/bin/*/darwin/*
6048

6149
dmg:
6250
background: public/dmg.png
@@ -79,14 +67,7 @@ linux:
7967
desktop:
8068
Name: Heroic Games Launcher
8169
Comment[de]: Ein Open Source Spielelauncher for GOG und Epic Games
82-
asarUnpack:
83-
- build/bin/x64/linux/legendary
84-
- build/bin/x64/linux/gogdl
85-
- build/bin/x64/linux/nile
86-
- build/bin/x64/linux/vulkan-helper
87-
files:
88-
- build/bin/x64/linux/*
89-
- build/bin/arm64/linux/*
70+
files: build/bin/*/linux/*
9071

9172
snap:
9273
base: core20

0 commit comments

Comments
 (0)