diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..bd4d0d1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +language: cpp +compiler: gcc +sudo: require +dist: trusty + +before_install: + - sudo add-apt-repository ppa:beineri/opt-qt593-trusty -y + - sudo apt-get update -qq + +install: + - sudo apt-get -y install qt59base qt59x11extras qt59tools libpoppler-qt5-dev + - source /opt/qt*/bin/qt*-env.sh + +script: + - cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + - make -j$(nproc) + - 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 + - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH + - export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file + - ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs + - ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage + +after_success: + - find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq + - # curl --upload-file QComicBook*.AppImage https://transfer.sh/QComicBook-git.$(git rev-parse --short HEAD)-x86_64.AppImage + - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh + - bash upload.sh QComicBook*.AppImage* + +branches: + except: + - # Do not build tags that we create when we upload to GitHub Releases + - /^(?i:continuous)/ diff --git a/data/qcomicbook.desktop b/data/qcomicbook.desktop index b9a0060..a1fd362 100644 --- a/data/qcomicbook.desktop +++ b/data/qcomicbook.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Encoding=UTF-8 -Name=qcomicbook +Name=QComicBook GenericName=ComicBook Viewer GenericName[fi]=Sarjakuvakatselin GenericName[pl]=Przeglądarka komiksów @@ -10,7 +10,7 @@ Comment[fi]=QComicBook on sarjakuva-arkistojen katselin (cbz, cbr ja cbt), jossa Comment[tr]=QComicBook cbz, cbr, cbt biçimindeki çizgi roman arşivlerini görüntülemek için kullanılır. Sayfa ön görünümü, sayfa döşeme, yer imi, mangalar için sayfa sırasını ters gösterme gibi çizgi roman okumayı kolaylaştırıcı özellikleri bulunuyor. Comment[pl]=Przeglądarka do archiwów z komiksami Exec=qcomicbook -Icon=qcomicbook.png +Icon=qcomicbook Terminal=false Type=Application StartupNotify=false