From 1e35b1768c27dd592824ce23e81d0141d457f87f Mon Sep 17 00:00:00 2001 From: ballessay Date: Mon, 22 May 2017 23:43:13 +0200 Subject: [PATCH] Use custom qmake parameter for AppImage Install files for AppImage if a custom qmake parameter is supplied, not by abusing PREFIX. Add new paramter to .travis.yml --- .travis.yml | 2 +- src/iaito.pro | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d19c893a..3856905f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ script: - sys/install.sh - cd .. - mkdir build ; cd build - - qmake PREFIX=/usr ../src + - qmake PREFIX=/usr APPIMAGE=1 ../src - make -j4 - sudo make INSTALL_ROOT=appdir install ; sudo chown -R $USER appdir - mkdir -p appdir/usr/share/radare2 ; cp -Lr /usr/share/radare2/*-git/ appdir/usr/share/radare2/ ; find appdir/ diff --git a/src/iaito.pro b/src/iaito.pro index fee52db3..1d5686ed 100644 --- a/src/iaito.pro +++ b/src/iaito.pro @@ -143,7 +143,6 @@ include(lib_radare2.pri) unix { isEmpty(PREFIX) { PREFIX = /usr/local - DEFAULT_PREFIX = true } desktop_file = iaito.desktop @@ -159,8 +158,8 @@ unix { INSTALLS += target share_applications - # if a custom PREFIX is supplied, we asume it's an AppImage install - !defined(DEFAULT_PREFIX, var) { + # Triggered for example by 'qmake APPIMAGE=1' + !isEmpty(APPIMAGE){ # UGLY work around for the logo name in iaito.desktop # Would be better to have a file called iaito.png in the first place system(cp img/logo-small.png $$OUT_PWD/iaito.png)