Skip to content

Commit

Permalink
Testing Travis CI
Browse files Browse the repository at this point in the history
fixed root directory in travis.yml

Added target

Updated travis

Updated location of pro

Trying to cp binary, as i cannot manage to install it

Fixed app name in travis.yml

Changed app name

Added data to appdir

Added -R to cp
  • Loading branch information
azagaya committed May 4, 2020
1 parent 1125041 commit ab44592
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
os: linux
dist: xenial
language: cpp
compiler: gcc

addons:
apt:
sources:
- sourceline: ppa:beineri/opt-qt-5.14.1-xenial
packages:
- qt514base
- qt514x11extras
- qt514tools
- libgl1-mesa-dev
- libopencv-dev

install:
- source /opt/qt*/bin/qt*-env.sh

script:
- qmake src/AnimeEffects.pro -r CONFIG+=release PREFIX=/usr
- make -j$(nproc)
- make INSTALL_ROOT=appdir install
- mkdir -p appdir/usr/bin
- cp AnimeEffects appdir/usr/bin/
- cp -R data appdir/usr/bin/data
- 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 AnimeEffects*.AppImage*

branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/
8 changes: 8 additions & 0 deletions dist/AnimeEffects.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Name=AnimeEffects
GenericName=2D Animation tool
Comment=2D Animation tool
Exec=AnimeEffects
Icon=AnimeEffects
Type=Application
Categories=Graphics;2DGraphics;
Binary file added dist/AnimeEffects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/AnimeEffects.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#
#-------------------------------------------------

TARGET = AnimeEffects

TEMPLATE = subdirs
SUBDIRS = util thr cmnd gl img core ctrl gui

Expand Down Expand Up @@ -39,3 +41,21 @@ export(copydata.commands)
export(copytools.commands)
QMAKE_EXTRA_TARGETS += first copydata copytools
}

# Installs
unix{
isEmpty(PREFIX) {
PREFIX = /usr/local
}

target.path = $$PREFIX/bin

shortcutfiles.files = dist/AnimeEffects.desktop
shortcutfiles.path = $$PREFIX/share/applications/
iconfiles.files = dist/AnimeEffects.png
iconfiles.path = $$PREFIX/share/icons/hicolor/256x256/

INSTALLS += target
INSTALLS += shortcutfiles
INSTALLS += iconfiles
}

0 comments on commit ab44592

Please sign in to comment.