Skip to content

Commit 764b45d

Browse files
committed
Add sharun to try to get AppImage working
1 parent dcfef57 commit 764b45d

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.github/workflows/linux.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,18 @@ jobs:
3636
- name: Install build dependencies
3737
run: |
3838
set -x
39-
sudo apt-get -y install build-essential libfaad-dev libmpg123-dev libfftw3-dev librtlsdr-dev libusb-1.0-0-dev mesa-common-dev libglu1-mesa-dev libpulse-dev libsoapysdr-dev libairspy-dev libmp3lame-dev libflac++-dev
39+
40+
# Install build dependencies
41+
sudo apt-get -y install build-essential libfaad-dev libmpg123-dev libfftw3-dev \
42+
librtlsdr-dev libusb-1.0-0-dev mesa-common-dev libglu1-mesa-dev libpulse-dev \
43+
libsoapysdr-dev libairspy-dev libmp3lame-dev libflac++-dev libegl-dev
4044
45+
# Install sharun dependencies
46+
sudo apt install file binutils patchelf findutils grep sed coreutils strace
47+
48+
# Install virtual graphic display to run welle.io without an display
49+
sudo apt install xvfb
50+
4151
- name: Build
4252
id: build
4353
run: |
@@ -64,15 +74,24 @@ jobs:
6474
- name: Create AppImage
6575
id: create_appimage
6676
run: |
67-
# Get appimagetool
68-
#wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
69-
wget https://welle-io-nightlies.albrechtloh.de/appimagetool-843-x86_64.AppImage # just for testing
77+
# Get appimagetool
78+
wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
79+
#wget https://welle-io-nightlies.albrechtloh.de/appimagetool-843-x86_64.AppImage # just for testing
7080
chmod +x appimagetool-*.AppImage
7181
72-
# Create AppImage
82+
# Get lib4bin (sharun)
83+
wget https://raw.githubusercontent.com/VHSgunzo/sharun/refs/heads/main/lib4bin -O ./lib4bin
84+
chmod +x ./lib4bin
85+
86+
# Dummy run welle in a virtual display to collect graphic libraries with sharun
87+
xvfb-run -- ./lib4bin -p -v -r -e ./appdir/usr/bin/welle-io
88+
cp shared/lib/* appdir/usr/lib/x86_64-linux-gnu/
89+
90+
# Collect remaining libraries
7391
./appimagetool-*.AppImage -s deploy ./appdir/usr/share/applications/*.desktop # Bundle EVERYTHING
74-
cp /usr/lib/x86_64-linux-gnu/dri/* appdir/usr/lib/x86_64-linux-gnu/ # Copy some additional libs to AppImage. See https://github.com/probonopd/go-appimage/issues/301 for details
7592
find appdir/
93+
94+
# Create AppImage
7695
VERSION=1.0 ./appimagetool-*.AppImage ./appdir # turn AppDir into AppImage
7796
7897
# Preapre publish

0 commit comments

Comments
 (0)