forked from MrBesen/lolautoaccept
appimage builds
This commit is contained in:
parent
85e6f5d5be
commit
31b058e63e
|
@ -22,3 +22,8 @@ ui/*.h
|
|||
*.pro.user
|
||||
*.qm
|
||||
Makefile
|
||||
|
||||
AppDir/
|
||||
*.AppImage
|
||||
*.svg
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=LoLAutoAccept
|
||||
Exec=lolautoaccept
|
||||
Icon=lolautoaccept
|
||||
Categories=Audio;
|
|
@ -92,6 +92,19 @@ PRE_TARGETDEPS += makelang
|
|||
|
||||
QMAKE_CLEAN += $$TRANSLATIONSQM
|
||||
|
||||
# build AppImage
|
||||
unix {
|
||||
$$PWD/linuxdeploy-x86_64.AppImage.commands = wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod u+x linuxdeploy-x86_64.AppImage
|
||||
$$MOC_DIR/lolautoaccept.svg.commands = touch $$MOC_DIR/lolautoaccept.svg
|
||||
|
||||
appimg.depends = $$PWD/linuxdeploy-x86_64.AppImage $${TARGET} $$MOC_DIR/lolautoaccept.svg
|
||||
appimg.commands = rm -rf AppDir ; mkdir -p AppDir/ts; cp $$PWD/ts/*.qm ./AppDir/ts ; ./linuxdeploy-x86_64.AppImage --appdir=AppDir -e lolautoaccept -i $$MOC_DIR/lolautoaccept.svg -d lolautoaccept.desktop --output appimage
|
||||
|
||||
QMAKE_EXTRA_TARGETS += appimg $$PWD/linuxdeploy-x86_64.AppImage $$MOC_DIR/lolautoaccept.svg
|
||||
|
||||
QMAKE_CLEAN += $$PWD/linuxdeploy-x86_64.AppImage $$MOC_DIR/lolautoaccept.svg
|
||||
}
|
||||
|
||||
# Default rules for deployment.
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
|
||||
int main(int argc, char** argv) {
|
||||
Log::init();
|
||||
Log::setConsoleLogLevel(Log::Level::TRACE);
|
||||
Log::addLogfile("log.txt", Log::Level::TRACE);
|
||||
Log::setConsoleLogLevel(Log::Level::INFO);
|
||||
// Log::addLogfile("log.txt", Log::Level::TRACE);
|
||||
#if __unix__
|
||||
Log::setColoredOutput(true);
|
||||
#endif
|
||||
|
@ -29,7 +29,7 @@ int main(int argc, char** argv) {
|
|||
Log::warn << "translation not found";
|
||||
}
|
||||
MainWindow win(lolaa);
|
||||
/*
|
||||
|
||||
while(!lolaa.init()) {
|
||||
QMessageBox warn;
|
||||
warn.setWindowTitle(MainWindow::tr("LoL-Auto-Accept"));
|
||||
|
@ -44,8 +44,6 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
win.show();
|
||||
int ret = app.exec();
|
||||
|
||||
|
|
15
ts/de_DE.ts
15
ts/de_DE.ts
|
@ -5,6 +5,7 @@
|
|||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../ui/mainwindow.ui" line="14"/>
|
||||
<location filename="../src/main.cpp" line="35"/>
|
||||
<source>LoL-Auto-Accept</source>
|
||||
<translation>LoL-Auto-Accept</translation>
|
||||
</message>
|
||||
|
@ -46,17 +47,17 @@
|
|||
<translation>Bannen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="43"/>
|
||||
<location filename="../src/mainwindow.cpp" line="44"/>
|
||||
<source>League of Legends Client not found!</source>
|
||||
<translation>League of Legends Client nicht gefunden!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="49"/>
|
||||
<location filename="../src/mainwindow.cpp" line="50"/>
|
||||
<source>Auto-Acceptor started!</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="52"/>
|
||||
<location filename="../src/mainwindow.cpp" line="53"/>
|
||||
<source>Auto-Acceptor stoped!</source>
|
||||
<translation>Auto Acceptor gestoppt!</translation>
|
||||
</message>
|
||||
|
@ -64,12 +65,14 @@
|
|||
<context>
|
||||
<name>QMessageBox</name>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="36"/>
|
||||
<source>League of Legends Client not found!</source>
|
||||
<translation type="obsolete">League of Legends Client nicht gefunden!</translation>
|
||||
<translation>League of Legends Client nicht gefunden!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="37"/>
|
||||
<source>Open the client and retry or close.</source>
|
||||
<translation type="vanished">Starte den Client und wiederhole oder Fenster schließen.</translation>
|
||||
<translation>Starte den Client und wiederhole oder Fenster schließen.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -90,7 +93,7 @@
|
|||
<translation>Übereinstimmende Champions: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/stagesettings.cpp" line="97"/>
|
||||
<location filename="../src/stagesettings.cpp" line="98"/>
|
||||
<source>Champion: %1
|
||||
Type: %2
|
||||
Title: %3
|
||||
|
|
15
ts/en.ts
15
ts/en.ts
|
@ -5,6 +5,7 @@
|
|||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../ui/mainwindow.ui" line="14"/>
|
||||
<location filename="../src/main.cpp" line="35"/>
|
||||
<source>LoL-Auto-Accept</source>
|
||||
<translation>LoL-Auto-Accept</translation>
|
||||
</message>
|
||||
|
@ -46,17 +47,17 @@
|
|||
<translation>Ban</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="43"/>
|
||||
<location filename="../src/mainwindow.cpp" line="44"/>
|
||||
<source>League of Legends Client not found!</source>
|
||||
<translation>League of Legends Client not found!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="49"/>
|
||||
<location filename="../src/mainwindow.cpp" line="50"/>
|
||||
<source>Auto-Acceptor started!</source>
|
||||
<translation>Auto-Acceptor started!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/mainwindow.cpp" line="52"/>
|
||||
<location filename="../src/mainwindow.cpp" line="53"/>
|
||||
<source>Auto-Acceptor stoped!</source>
|
||||
<translation>Auto-Acceptor stopped!</translation>
|
||||
</message>
|
||||
|
@ -64,12 +65,14 @@
|
|||
<context>
|
||||
<name>QMessageBox</name>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="36"/>
|
||||
<source>League of Legends Client not found!</source>
|
||||
<translation type="vanished">League of Legends Client not found!</translation>
|
||||
<translation>League of Legends Client not found!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="37"/>
|
||||
<source>Open the client and retry or close.</source>
|
||||
<translation type="vanished">Open the client and retry or close.</translation>
|
||||
<translation>Open the client and retry or close.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -90,7 +93,7 @@
|
|||
<translation>Champions matched: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/stagesettings.cpp" line="97"/>
|
||||
<location filename="../src/stagesettings.cpp" line="98"/>
|
||||
<source>Champion: %1
|
||||
Type: %2
|
||||
Title: %3
|
||||
|
|
Loading…
Reference in New Issue