Navigation Menu

Skip to content

Commit

Permalink
Keep existing AppRun (#335)
Browse files Browse the repository at this point in the history
Keep existing AppRun, closes #159
  • Loading branch information
probonopd committed Dec 15, 2018
1 parent 0dd02e3 commit 600fc20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/tests-ci.sh
Expand Up @@ -16,8 +16,8 @@ cp -r /usr/local/lib/appimagekit linuxdeployqt.AppDir/usr/lib/
find linuxdeployqt.AppDir/
export VERSION=continuous
if [ ! -z $TRAVIS_TAG ] ; then export VERSION=$TRAVIS_TAG ; fi
./bin/linuxdeployqt linuxdeployqt.AppDir/usr/bin/desktop-file-validate -verbose=3 -bundle-non-qt-libs
./bin/linuxdeployqt linuxdeployqt.AppDir/linuxdeployqt.desktop -verbose=3 -appimage
./bin/linuxdeployqt linuxdeployqt.AppDir/linuxdeployqt.desktop -verbose=3 -appimage \
-executable=linuxdeployqt.AppDir/usr/bin/desktop-file-validate
ls -lh
find *.AppDir
xpra start :99
Expand Down
6 changes: 3 additions & 3 deletions tools/linuxdeployqt/main.cpp
Expand Up @@ -260,11 +260,11 @@ int main(int argc, char **argv)

QFile appRun(appDirPath + "/AppRun");
if(appRun.exists()){
appRun.remove();
qDebug() << "Keeping existing AppRun";
} else {
QFile::link(relativeBinPath, appDirPath + "/AppRun");
}

QFile::link(relativeBinPath, appDirPath + "/AppRun");

/* Copy the desktop file in place, into the top level of the AppDir */
if(desktopFile != ""){
QString destination = QDir::cleanPath(appDirPath + "/" + QFileInfo(desktopFile).fileName());
Expand Down

0 comments on commit 600fc20

Please sign in to comment.