mirror of
https://github.com/YACReader/yacreader
synced 2025-07-25 08:25:03 -04:00
- Support FilesystemHierarchyStandard on Linux/Unix using preprocessor macros in .pro files.
- Add support for "make install" and "qmake PREFIX=" to improve YACReader packageability. - Add .desktop files for YACReader and YACReaderLibrary X11 desktop integration. - Add central YACReader.pro file as alternative to compileX11.sh - Add p7zip patch support and sourcecode check to .pro files
This commit is contained in:
@ -14,7 +14,11 @@ void PackageManager::createPackage(const QString & libraryPath,const QString & d
|
||||
_7z = new QProcess();
|
||||
connect(_7z,SIGNAL(error(QProcess::ProcessError)),this,SLOT(openingError(QProcess::ProcessError)));
|
||||
connect(_7z,SIGNAL(finished(int,QProcess::ExitStatus)),this,SIGNAL(exported()));
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
_7z->start("7z",attributes); //TODO: use 7z.so
|
||||
#else
|
||||
_7z->start(QCoreApplication::applicationDirPath()+"/utils/7zip",attributes); //TODO: use 7z.dll
|
||||
#endif
|
||||
}
|
||||
|
||||
void PackageManager::extractPackage(const QString & packagePath,const QString & destDir)
|
||||
@ -26,7 +30,11 @@ void PackageManager::extractPackage(const QString & packagePath,const QString &
|
||||
_7z = new QProcess();
|
||||
connect(_7z,SIGNAL(error(QProcess::ProcessError)),this,SLOT(openingError(QProcess::ProcessError)));
|
||||
connect(_7z,SIGNAL(finished(int,QProcess::ExitStatus)),this,SIGNAL(imported()));
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
_7z->start("7z",attributes); //TODO: use 7z.so
|
||||
#else
|
||||
_7z->start(QCoreApplication::applicationDirPath()+"/utils/7zip",attributes); //TODO: use 7z.dll
|
||||
#endif
|
||||
}
|
||||
|
||||
void PackageManager::cancel()
|
||||
|
Reference in New Issue
Block a user