Browse Source

Fix symlink

master
probonopd 8 years ago
committed by GitHub
parent
commit
71d29040e0
  1. 4
      linuxdeployqt/main.cpp

4
linuxdeployqt/main.cpp

@ -67,7 +67,7 @@ int main(int argc, char **argv)
return 1; return 1;
} }
QString appName = QDir::cleanPath(QFileInfo(appBinaryPath).baseName()); QString appName = QDir::cleanPath(QFileInfo(appBinaryPath).completeBaseName());
if (QDir().exists(appBinaryPath)) { if (QDir().exists(appBinaryPath)) {
qDebug() << "app-binary:" << appBinaryPath; qDebug() << "app-binary:" << appBinaryPath;
@ -92,7 +92,7 @@ int main(int argc, char **argv)
if(appRun.exists()){ if(appRun.exists()){
appRun.remove(); appRun.remove();
} }
QFile::link(appBinaryPath, "AppRun"); QFile::link(appName, appDir + "/AppRun");
bool plugins = true; bool plugins = true;
bool appimage = false; bool appimage = false;

Loading…
Cancel
Save