mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-05-06 08:07:25 +02:00
Generate JSON linux
This commit is contained in:
@@ -116,6 +116,16 @@ message("Git branch: "$$GIT_BRANCH)
|
||||
message("Version: "$$VERSION_MAJOR"."$$VERSION_MINOR"."$$VERSION_PATCH)
|
||||
#message($$QMAKESPEC)
|
||||
|
||||
unix: {
|
||||
|
||||
#
|
||||
# Generate JSON
|
||||
#
|
||||
QMAKE_POST_LINK = cp -f "$${_PRO_FILE_PWD_}/../config/linux/SysTray_X.json.template" "$${_PRO_FILE_PWD_}/../config/linux/SysTray_X.json" ;
|
||||
QMAKE_POST_LINK += sed -i -e "s?SYSTRAY_X_PATH?$${OUT_PWD}/$${TARGET}?" "$${_PRO_FILE_PWD_}/../config/linux/SysTray_X.json" ;
|
||||
QMAKE_POST_LINK += cp -f "$${_PRO_FILE_PWD_}/../config/linux/SysTray_X.json" ~/.mozilla/native-messaging-hosts/SysTray_X.json ;
|
||||
}
|
||||
|
||||
win32: {
|
||||
CONFIG(debug, debug|release) {
|
||||
QMAKE_POST_LINK = $$[QT_INSTALL_BINS]\windeployqt.exe "$$shell_path($${OUT_PWD}/debug/$${TARGET}.exe)"
|
||||
|
||||
7
app/config/linux/SysTray_X.json.template
Normal file
7
app/config/linux/SysTray_X.json.template
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "SysTray_X",
|
||||
"description": "SysTray-X System Tray App",
|
||||
"path": "SYSTRAY_X_PATH",
|
||||
"type": "stdio",
|
||||
"allowed_extensions": [ "systray-x@Ximi1970" ]
|
||||
}
|
||||
Reference in New Issue
Block a user