-
Notifications
You must be signed in to change notification settings - Fork 294
/
.travis.yml
32 lines (29 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: cpp
compiler: gcc
sudo: require
dist: xenial
install:
- sudo apt-get -y install libsdl2-* cmake
script:
- mkdir build && cd build
- cmake ..
- make -j$(nproc)
- mkdir -p appdir/usr/share/icons/hicolor/256x256/apps # FIXME: "make INSTALL_ROOT=appdir install" should do this
- cp ../dungeonrush.png appdir/usr/share/icons/hicolor/256x256/apps/ # FIXME: "make INSTALL_ROOT=appdir install" should do this
- mkdir -p appdir/usr/share/applications # FIXME: "make INSTALL_ROOT=appdir install" should do this
- cp ../dungeonrush.desktop appdir/usr/share/applications/ # FIXME: "make INSTALL_ROOT=appdir install" should do this
- mkdir -p appdir/usr/bin # FIXME: "make INSTALL_ROOT=appdir install" should do this
- cp -r bin/dungeon_rush appdir/usr/bin/ # FIXME: "make INSTALL_ROOT=appdir install" should do this
- cp -r bin/res appdir/usr/ # FIXME: Workaround for https://github.com/Rapiz1/DungeonRush/issues/10#issuecomment-629748817
- wget -c "https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64" -O ./appdir/AppRun # FIXME: Workaround for https://github.com/Rapiz1/DungeonRush/issues/10#issuecomment-629748817
- chmod +x ./appdir/AppRun # FIXME: Workaround for https://github.com/Rapiz1/DungeonRush/issues/10#issuecomment-629748817
- 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
- env UPLOADTOOL_ISPRERELEASE=1 bash upload.sh DungeonRush*.AppImage*
branches:
only:
- master