diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..652fc783 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,38 @@ +language: cpp +compiler: gcc +sudo: require +dist: xenial + +install: + - sudo apt-get update + - sudo apt-get -y install libsdl2-image-dev + +script: + - cd src/ + - cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + - make -j$(nproc) + - mkdir -p appdir/usr/share/applications ; cp ../sdlpop.desktop appdir/usr/share/applications + - mkdir -p appdir/usr/share/icons/hicolor/256x256/apps ; cp ../sdlpop.png appdir/usr/share/icons/hicolor/256x256/apps/ + - mkdir -p appdir/usr/bin ; cp ../prince appdir/usr/bin/sdlpop + - | + cat > appdir/AppRun <<\EOF + #!/bin/bash + HERE="$(dirname "$(readlink -f "${0}")")" + cd "${HERE}/usr/bin/" + exec "${HERE}/usr/bin/sdlpop" "$@" + EOF + - chmod +x appdir/AppRun + - cp -r ../data ../mods ./appdir/usr/bin/ + - make DESTDIR=appdir -j$(nproc) install ; find appdir/ + - wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" + - chmod a+x linuxdeployqt-continuous-x86_64.AppImage + - ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage + +after_success: + - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh + - bash upload.sh SDLPoP*.AppImage* + +branches: + except: + - # Do not build tags that we create when we upload to GitHub Releases + - /^(?i:continuous)/ diff --git a/sdlpop.desktop b/sdlpop.desktop new file mode 100644 index 00000000..2735078f --- /dev/null +++ b/sdlpop.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=SDLPoP +Comment=An open-source port of Prince of Persia +Exec=sdlpop +Icon=sdlpop +Categories=Application;Game;ArcadeGame; diff --git a/sdlpop.png b/sdlpop.png new file mode 100644 index 00000000..59dbd661 Binary files /dev/null and b/sdlpop.png differ