Skip to content

Commit 71076a4

Browse files
committed
添加url协议
1 parent ee14d6f commit 71076a4

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

install-package/urlProtocol.nsh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
!macro customInstall
2+
DetailPrint "Register owtclient URI Handler"
3+
DeleteRegKey HKCR "owtclient"
4+
WriteRegStr HKCR "owtclient" "" "URL:owtclient"
5+
WriteRegStr HKCR "owtclient" "URL Protocol" ""
6+
WriteRegStr HKCR "owtclient\shell" "" ""
7+
WriteRegStr HKCR "owtclient\shell\Open" "" ""
8+
WriteRegStr HKCR "owtclient\shell\Open\command" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME} %1"
9+
!macroend

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"installerHeaderIcon": "static/icon/logo.ico",
109109
"createDesktopShortcut": true,
110110
"createStartMenuShortcut": true,
111-
"shortcutName": "RTCClient",
111+
"shortcutName": "OWTClient",
112112
"include": "install-package/urlProtocol.nsh"
113113
},
114114
"protocols": [

0 commit comments

Comments
 (0)