mirror of
https://github.com/LostArtefacts/TR2X.git
synced 2025-01-09 06:50:23 +00:00
18 lines
421 B
Bash
Executable File
18 lines
421 B
Bash
Executable File
#!/bin/sh
|
|
set -x
|
|
set -e
|
|
|
|
export CFLAGS=-DDOCKER_BUILD
|
|
|
|
if [ ! -f /app/build/win/build.ninja ]; then
|
|
meson --buildtype "$TARGET" /app/build/win/ --cross /app/docker/game-win/meson_linux_mingw32.txt --pkg-config-path=$PKG_CONFIG_PATH
|
|
fi
|
|
|
|
cd /app/build/win; meson compile
|
|
|
|
if [ "$TARGET" = release ]; then
|
|
for file in *.exe; do
|
|
upx -t "$file" || ( i686-w64-mingw32-strip "$file" && upx "$file" )
|
|
done
|
|
fi
|