Update reg generation

This commit is contained in:
Ximi1970
2023-10-22 19:35:36 +02:00
parent c4c4300bae
commit ed762270d5
3 changed files with 11 additions and 0 deletions

View File

@@ -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)\'\" &
}
#

View File

@@ -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"

View File

@@ -0,0 +1,5 @@
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Mozilla\NativeMessagingHosts\SysTray_X]
@="SYSTRAY_X_JSON_PATH"