blob: 84bea8f4755bee444f8db94339cf1b6f96f58807 (
plain) (
tree)
|
|
stages:
- build
"win32":
image: fedora:35
stage: build
script:
- dnf install -y git autoconf automake mingw32-gcc python2 which pkgconfig
- dnf install -y mingw-w64-tools mingw32-SDL_image mingw32-win-iconv
- dnf install -y SDL_image-devel SDL_mixer-devel SDL_gfx-devel SDL_ttf-devel libjpeg-devel libpng-devel libvorbis-devel libGLU-devel lua-devel gettext gettext-devel
- dnf install -y mingw32* # Extreme remedy
- git --version
- git clone https://gitlab.com/freedroid/freedroid-src.git freedroid
- cd freedroid
- git checkout master
- git rev-parse HEAD
- ./autogen.sh
- mingw32-configure --without-x --disable-dependency-tracking
- make clean
- make all
artifacts:
paths:
- "freedroid/build_mingw32/build"
# Python2 is called "python" in 18.04
"appimage":
image: ubuntu:18.04
stage: build
script:
- apt-get update
- apt-get install -y git autoconf automake pkg-config autopoint gcc python libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl1.2-dev libjpeg-dev libpng-dev libsdl-ttf2.0-dev libvorbis-dev libogg-dev libzstd-dev zlib1g-dev libgl-dev libgl-dev libglew-dev
- git clone https://gitlab.com/freedroid/freedroid-src.git freedroid
- ls
- chmod +x linuxdeploy-x86_64.AppImage
- chmod +x AppRun
- ./linuxdeploy-x86_64.AppImage --appimage-extract
- cd freedroid
- ./autogen.sh
- dir=`pwd`
- ./configure --datadir=$dir/run/share/games --bindir=$dir/run/bin --mandir=$dir/run/share/man
- make -s
- make install
- cd ..
- mkdir AppDir
- ls --recursive
- cp -r $dir/run/share/games/freedroid/ AppDir/data
- cp ../../AppRun AppDir/AppRun
- ./squashfs-root/AppRun --appdir AppDir -i freedroid/pkgs/freedesktop/icons/hicolor/scalable/apps/freedroidRPG.svg -d freedroid/pkgs/freedesktop/freedroidrpg.desktop -e freedroid/run/bin/freedroid --output appimage
- mkdir public
- ls
- mv *.AppImage public
artifacts:
paths:
- "public/"
|