mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
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
This commit is contained in:
parent
d565c76483
commit
1e35b1768c
@ -18,7 +18,7 @@ script:
|
|||||||
- sys/install.sh
|
- sys/install.sh
|
||||||
- cd ..
|
- cd ..
|
||||||
- mkdir build ; cd build
|
- mkdir build ; cd build
|
||||||
- qmake PREFIX=/usr ../src
|
- qmake PREFIX=/usr APPIMAGE=1 ../src
|
||||||
- make -j4
|
- make -j4
|
||||||
- sudo make INSTALL_ROOT=appdir install ; sudo chown -R $USER appdir
|
- 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/
|
- mkdir -p appdir/usr/share/radare2 ; cp -Lr /usr/share/radare2/*-git/ appdir/usr/share/radare2/ ; find appdir/
|
||||||
|
@ -143,7 +143,6 @@ include(lib_radare2.pri)
|
|||||||
unix {
|
unix {
|
||||||
isEmpty(PREFIX) {
|
isEmpty(PREFIX) {
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
DEFAULT_PREFIX = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
desktop_file = iaito.desktop
|
desktop_file = iaito.desktop
|
||||||
@ -159,8 +158,8 @@ unix {
|
|||||||
|
|
||||||
INSTALLS += target share_applications
|
INSTALLS += target share_applications
|
||||||
|
|
||||||
# if a custom PREFIX is supplied, we asume it's an AppImage install
|
# Triggered for example by 'qmake APPIMAGE=1'
|
||||||
!defined(DEFAULT_PREFIX, var) {
|
!isEmpty(APPIMAGE){
|
||||||
# UGLY work around for the logo name in iaito.desktop
|
# UGLY work around for the logo name in iaito.desktop
|
||||||
# Would be better to have a file called iaito.png in the first place
|
# Would be better to have a file called iaito.png in the first place
|
||||||
system(cp img/logo-small.png $$OUT_PWD/iaito.png)
|
system(cp img/logo-small.png $$OUT_PWD/iaito.png)
|
||||||
|
Loading…
Reference in New Issue
Block a user