diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index df6f9e1..feeaad9 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -140,6 +140,7 @@ win32: { JSON_JSON_PATH = $$system(powershell -Command "('$$shell_path($${_PRO_FILE_PWD_}/../../config/win32/SysTray_X.json)').replace('\\','\\\\')") QMAKE_POST_LINK += powershell -Command \"(Get-Content \'$$shell_path($${_PRO_FILE_PWD_}/../../config/win32/SysTray-X-User.reg.template)\' ).replace(\'SYSTRAY_X_JSON_PATH\',\'$$JSON_JSON_PATH\') | Set-Content \'$$shell_path($${_PRO_FILE_PWD_}/../../config/win32/SysTray-X-User.reg)\'\" & + QMAKE_POST_LINK += powershell -Command \"(Get-Content \'$$shell_path($${_PRO_FILE_PWD_}/../../config/win32/SysTray-X-System.reg.template)\' ).replace(\'SYSTRAY_X_JSON_PATH\',\'$$JSON_JSON_PATH\') | Set-Content \'$$shell_path($${_PRO_FILE_PWD_}/../../config/win32/SysTray-X-System.reg)\'\" & } # diff --git a/app/config/win32/SysTray-X-System.reg.example b/app/config/win32/SysTray-X-System.reg.example new file mode 100644 index 0000000..041ae5e --- /dev/null +++ b/app/config/win32/SysTray-X-System.reg.example @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\Software\Mozilla\NativeMessagingHosts\SysTray_X] +@="C:\\Projects\\Github\\Ximi1970\\systray-x\\app\\SysTray-X\\..\\config\\win32\\SysTray_X.json" + diff --git a/app/config/win32/SysTray-X-System.reg.template b/app/config/win32/SysTray-X-System.reg.template new file mode 100644 index 0000000..97b4b01 --- /dev/null +++ b/app/config/win32/SysTray-X-System.reg.template @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\Software\Mozilla\NativeMessagingHosts\SysTray_X] +@="SYSTRAY_X_JSON_PATH" +