Skip to content

Commit 85859ec

Browse files
committed
ci: linux portable build (hopefully)
1 parent 7daad87 commit 85859ec

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,46 @@ jobs:
9292
9393
apt build-dep -y vlc
9494
apt install -y git curl zip libtool automake autoconf autopoint make \
95-
gettext pkg-config subversion cmake cvs zip bzip2 \
95+
gettext pkg-config subversion cmake cvs zip bzip2 patchelf \
9696
p7zip-full wget dos2unix ragel yasm g++ protobuf-compiler \
9797
m4 ant build-essential libtool-bin libavformat-dev \
9898
libswresample-dev libavutil-dev libpostproc-dev libswscale-dev \
9999
wayland-protocols qtbase5-private-dev libarchive-dev libmpg123-dev \
100100
libnfs-dev libqt5svg5-dev flex bison curl qtdeclarative5-dev \
101101
qtquickcontrols2-5-dev nasm gcovr libxkbcommon-x11-dev meson || :
102-
apt install -y git
103102
apt-get clean -y && rm -rf /var/lib/apt/lists/*
104103
105104
chmod -R 777 /project && git config --global --add safe.directory '*'
106105
107106
cd /project && mkdir vlc-install
108107
109108
./bootstrap &&\
110-
./configure --prefix="$PWD/vlc-install" &&\
109+
./configure --prefix="$PWD/vlc-install" --disable-qt &&\
111110
make -j"$(nproc)" &&\
112111
make install
113112
114113
cd vlc-install
114+
115+
find "./bin" -maxdepth 1 -type f | while read -r exe; do
116+
echo "Patching rpath in: $exe"
117+
patchelf --set-rpath '$ORIGIN/../lib:$ORIGIN' "$exe" || :
118+
done
119+
120+
find "./lib" -maxdepth 1 -type f | while read -r exe; do
121+
echo "Patching rpath in: $exe"
122+
patchelf --set-rpath '$ORIGIN/../lib:$ORIGIN' "$exe" || :
123+
done
124+
125+
find "./lib/vlc" -maxdepth 1 -type f | while read -r exe; do
126+
echo "Patching rpath in: $exe"
127+
patchelf --set-rpath '$ORIGIN/../../lib:$ORIGIN' "$exe" || :
128+
done
129+
130+
find "./lib/vlc/plugins" -type f | while read -r exe; do
131+
echo "Patching rpath in: $exe"
132+
patchelf --set-rpath '$ORIGIN/../../../../lib:$ORIGIN' "$exe" || :
133+
done
134+
115135
zip -r vlc-linux-${{ matrix.arch }}.zip *
116136
mv vlc-linux-${{ matrix.arch }}.zip ../
117137
chmod 777 ../vlc-linux-${{ matrix.arch }}.zip
@@ -121,7 +141,7 @@ jobs:
121141
with:
122142
append_body: true
123143
fail_on_unmatched_files: true
124-
files: ./build/win64/vlc-linux-${{ matrix.arch }}.zip
144+
files: ./vlc-linux-${{ matrix.arch }}.zip
125145
env:
126146
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127147

0 commit comments

Comments
 (0)