forked from mirrors/principia
Use our own SDL2 build for the Linux AppImage
This commit is contained in:
parent
b86c71a723
commit
fae7194f42
3 changed files with 17 additions and 3 deletions
5
.github/workflows/linux.yml
vendored
5
.github/workflows/linux.yml
vendored
|
|
@ -28,7 +28,10 @@ jobs:
|
|||
- name: Install deps
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y g++ libgtk-3-dev libgl-dev libglew-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libfreetype6-dev libsdl2-dev cmake ninja-build desktop-file-utils ca-certificates wget file --no-install-recommends
|
||||
apt-get install -y g++ libgtk-3-dev libgl-dev libglew-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libfreetype6-dev cmake ninja-build desktop-file-utils ca-certificates wget file --no-install-recommends
|
||||
|
||||
wget https://github.com/principia-game/linux-deps/releases/download/latest/deps.tar.gz -O linux-deps.tar.gz
|
||||
tar -xaf linux-deps.tar.gz -C /
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -69,8 +69,6 @@ INCLUDE_LIBS=(
|
|||
libGLEW.so.2.1
|
||||
libjpeg.so.62
|
||||
libpng16.so.16
|
||||
libSDL2-2.0.so.0
|
||||
libXss.so.1
|
||||
)
|
||||
|
||||
mkdir -p usr/lib/
|
||||
|
|
@ -78,6 +76,9 @@ for i in "${INCLUDE_LIBS[@]}"; do
|
|||
cp /usr/lib/x86_64-linux-gnu/$i usr/lib/
|
||||
done
|
||||
|
||||
# Copy our own built SDL2
|
||||
cp /usr/lib/libSDL2-2.0.so.0 usr/lib/
|
||||
|
||||
# Actually build the appimage
|
||||
cd ..
|
||||
# LZMA compression since appimagelauncher doesn't support Zstd
|
||||
|
|
|
|||
|
|
@ -330,6 +330,16 @@ int main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
SDL_version compiled;
|
||||
SDL_VERSION(&compiled);
|
||||
tms_infof("Compiled against SDL v%u.%u.%u",
|
||||
compiled.major, compiled.minor, compiled.patch);
|
||||
|
||||
SDL_version linked;
|
||||
SDL_GetVersion(&linked);
|
||||
tms_infof("Linked against SDL v%u.%u.%u",
|
||||
linked.major, linked.minor, linked.patch);
|
||||
|
||||
tms_infof("Initializing SDL...");
|
||||
SDL_Init(SDL_INIT_VIDEO);
|
||||
SDL_DisplayMode mode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue