Hello,
I want to manually package newer SDL version with my AppImage, than the one available in Ubuntu 18.04 repositories (2.0.12 vs 2.0.8) Embed selected version of SDL2 library into AppImage package · Issue #476 · AntiMicroX/antimicrox · GitHub
So I added uninstalling old sdl and building newer one to my Github action
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install extra-cmake-modules qttools5-dev qttools5-dev-tools libsdl2-dev libxi-dev libxtst-dev libx11-dev itstool gettext qt5-default zsync
sudo apt-get remove libsdl2-dev
- name: Install sdl2
run: |
git clone https://github.com/libsdl-org/SDL.git -b release-2.0.12
cd SDL
./configure
make
sudo make install
#Buildinf my app...
#And later added also flag --library=/usr/local/lib/libSDL2.so
- name: Create AppImage file
run: |
cd build
export UPDATE_INFORMATION="zsync|https://github.com/$GITHUB_REPOSITORY/releases/latest/download/antimicrox-x86_64.AppImage.zsync"
./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin qt --library=/usr/local/lib/libSDL2.so
./appimagetool-x86_64.AppImage AppDir/ -u "$UPDATE_INFORMATION"
After these changes everything seems to be fine. (You can see building logs here Downgrade · pktiuk/antimicrox@cebb471 · GitHub)
App is built againt 2.0.12, but it is packed with outdated 2.0.8
What is wrong?