Add updater application dir variable

This commit is contained in:
Gres 2020-04-14 21:59:36 +03:00
parent f51521f8e2
commit 351ac398b4
2 changed files with 4 additions and 3 deletions

View File

@ -150,6 +150,7 @@ void Manager::setupUpdates(const Settings &settings)
{"$translators$", settings.translatorsDir},
{"$tessdata$", settings.tessdataPath},
{"$hunspell$", settings.hunspellDir},
{"$appdir$", QApplication::applicationDirPath()},
});
SOFT_ASSERT(updateAutoChecker_, return );

View File

@ -2,9 +2,9 @@
"version":1
,"app":{
"win32":{"version":"3.0.0", "host":"win32", "files":[]}
,"win64":{"version":"3.0.0", "host":"win64", "files":[]}
,"linux":{"version":"3.0.0", "host":"linux", "files":[]}
"win32":{"version":"3.0.0", "host":"win32", "files":[{"path":"$appdir$/screen-translator.exe", "md5":""}]}
,"win64":{"version":"3.0.0", "host":"win64", "files":[{"path":"$appdir$/screen-translator.exe", "md5":""}]}
,"linux":{"version":"3.0.0", "host":"linux", "files":[{"path":"$appdir$/screen-translator", "md5":""}]}
}
,"recognizers": {