8000 Build and upload AppImage, closes #193 by probonopd · Pull Request #195 · NagyD/SDLPoP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Build and upload AppImage, closes #193 #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

8000
Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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)/
7 changes: 7 additions & 0 deletions sdlpop.desktop
Original file line number Diff line number Diff line change
@@ -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;
Binary file added sdlpop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
0