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
@@ -53,6 +53,11 @@ fi
|
||||
|
||||
plist=Burrow.app/Contents/Info.plist
|
||||
/usr/libexec/PlistBuddy -c "Set :CFBundleName Burrow" -c "Set :CFBundleDisplayName Burrow" -c "Set :CFBundleIdentifier software.burrow.client" "$plist"
|
||||
# burrow:// links (the account page's "Sign in with the Burrow client"):
|
||||
# macOS takes only those the app names here.
|
||||
/usr/libexec/PlistBuddy -c "Add :CFBundleURLTypes array" -c "Add :CFBundleURLTypes:0 dict" \
|
||||
-c "Add :CFBundleURLTypes:0:CFBundleURLName string Burrow" -c "Add :CFBundleURLTypes:0:CFBundleURLSchemes array" \
|
||||
-c "Add :CFBundleURLTypes:0:CFBundleURLSchemes:0 string burrow" "$plist"
|
||||
|
||||
mkdir icon.iconset
|
||||
for size in 16 32 128 256; do
|
||||
|
||||
Reference in new issue
Block a user