mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
Use lowercase packagename when installing on linux/unix for easier packaging
This commit is contained in:
@ -80,22 +80,22 @@ isEmpty(DESTDIR) {
|
||||
bin.files = $$DESTDIR/YACReader
|
||||
}
|
||||
|
||||
docs.path = $$DATADIR/doc/YACReader
|
||||
docs.path = $$DATADIR/doc/yacreader
|
||||
|
||||
#rename docs for better packageability
|
||||
docs.extra = cp ../CHANGELOG.txt ../changelog; cp ../README.txt ../README
|
||||
docs.files = ../README ../changelog
|
||||
|
||||
icon.path = $$DATADIR/YACReader
|
||||
icon.path = $$DATADIR/yacreader
|
||||
icon.files = ../images/icon.png
|
||||
|
||||
desktop.path = $$DATADIR/applications
|
||||
desktop.extra = desktop-file-edit --set-icon=$$DATADIR/YACReader/icon.png $$PWD/../YACReader.desktop
|
||||
desktop.extra = desktop-file-edit --set-icon=$$DATADIR/yacreader/icon.png $$PWD/../YACReader.desktop
|
||||
desktop.files = ../YACReader.desktop
|
||||
|
||||
#TODO: icons should be located at /usr/share/icons and have the same basename as their application
|
||||
|
||||
translation.path = $$DATADIR/YACReader/languages
|
||||
translation.path = $$DATADIR/yacreader/languages
|
||||
translation.files = ../release/languages/yacreader_*
|
||||
|
||||
manpage.path = $$DATADIR/man/man1
|
||||
|
@ -129,7 +129,7 @@ int main(int argc, char * argv[])
|
||||
QTranslator translator;
|
||||
QString sufix = QLocale::system().name();
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
translator.load(QString(DATADIR)+"/YACReader/languages/yacreader_"+sufix);
|
||||
translator.load(QString(DATADIR)+"/yacreader/languages/yacreader_"+sufix);
|
||||
#else
|
||||
translator.load(QCoreApplication::applicationDirPath()+"/languages/yacreader_"+sufix);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user