-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
44 lines (39 loc) · 1.54 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
33
34
35
36
37
38
39
40
41
42
43
44
language: cpp
sudo: true
dist: trusty
compiler:
- g++
#Build steps
before_install:
- sudo apt-get install libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libopenal-dev libglm-dev -y
script:
- make LINUX=1
# prepare the package
- mkdir -p appdir/usr
- mkdir appdir/usr/bin
- mkdir appdir/usr/lib
- cp stuntcarracer appdir/usr/bin/
- cp DejaVuSans*.ttf appdir/usr/bin/
- cp -r Bitmap appdir/usr/bin/
- cp -r Sounds appdir/usr/bin/
- cp -r Tracks appdir/usr/bin/
- mkdir -p appdir/usr/share/applications
- cp stuntcarracer.desktop appdir/usr/share/applications/
- mkdir -p appdir/usr/share/icons/hicolor/48x48
- cp icon48.png appdir/usr/share/icons/hicolor/48x48/stuntcarracer.png
- mkdir -p appdir/usr/share/icons/hicolor/96x96
- cp icon.png appdir/usr/share/icons/hicolor/48x48/stuntcarracer.png
- mkdir -p appdir/usr/share/icons/hicolor/256x256
- cp icon256.png appdir/usr/share/icons/hicolor/48x48/stuntcarracer.png
# AppImage package
- 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:
- ls -lh Stunt_Car_Remake*.AppImage*
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh Stunt_Car_Remake*.AppImage*
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous.*)$/