mirror of
https://github.com/burrow-dev/burrow-client.git
synced 2026-11-18 17:37:50 -05:00
feat: burrow:// links sign the account page in
The account page's "Sign in with the Burrow client" opens burrow://account?n=<nonce>. The copy already running takes the link (a copy started with one gives way at once); it uses the account being played, or the one remembered for its server (a choice when there are several), gets a ticket from the server and opens it in the browser. Installed copies register the protocol when they start; the Windows installer, the Linux packages and the macOS app declare it too.
This commit is contained in:
1 parent
b1dd733a9d
commit
b52c9194f5
6 files changed
+154
-11
No files matched your search
@@ -30,6 +30,10 @@ module.exports = {
|
||||
desktopName: "burrow.desktop",
|
||||
},
|
||||
|
||||
// burrow:// links, from the account page's "Sign in with the Burrow
|
||||
// client" (the .desktop file's MimeType; app/main.js asks for them too)
|
||||
protocols: [{name: "Burrow", schemes: ["burrow"]}],
|
||||
|
||||
linux: {
|
||||
target: [{target: "AppImage", arch: ["x64"]}, {target: "deb", arch: ["x64"]}, {target: "rpm", arch: ["x64"]}],
|
||||
icon: path.join(root, "app", "icon.png"),
|
||||
|
||||
@@ -53,6 +53,12 @@ Section "Burrow"
|
||||
WriteRegStr HKCU "${UNINSTALL_KEY}" "UninstallString" '"$INSTDIR\Uninstall Burrow.exe"'
|
||||
WriteRegDWORD HKCU "${UNINSTALL_KEY}" "NoModify" 1
|
||||
WriteRegDWORD HKCU "${UNINSTALL_KEY}" "NoRepair" 1
|
||||
|
||||
; burrow:// links, from the account page's "Sign in with the Burrow client"
|
||||
; (app/main.js writes the same when it starts)
|
||||
WriteRegStr HKCU "Software\Classes\burrow" "" "URL:burrow"
|
||||
WriteRegStr HKCU "Software\Classes\burrow" "URL Protocol" ""
|
||||
WriteRegStr HKCU "Software\Classes\burrow\shell\open\command" "" '"$INSTDIR\Burrow.exe" "%1"'
|
||||
SectionEnd
|
||||
|
||||
; only what was installed goes: the folder may be one the player chose, with
|
||||
@@ -66,4 +72,5 @@ Section "Uninstall"
|
||||
Delete "$DESKTOP\Burrow.lnk"
|
||||
DeleteRegKey HKCU "${UNINSTALL_KEY}"
|
||||
DeleteRegKey HKCU "Software\Burrow"
|
||||
DeleteRegKey HKCU "Software\Classes\burrow"
|
||||
SectionEnd
|
||||
Reference in new issue
Block a user