diff options
| author | AAGaming <aagaming@riseup.net> | 2026-10-17 20:10:30 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2026-10-17 20:10:30 -0400 |
| commit | 7611e381a8e3717d3b8a77b299c22042b9c97ea6 (patch) | |
| tree | bfc839383c4f446255be003223c28fa5109a280a | |
| parent | d38bf3478310d2aeddf9d0f62718c8786ef432a9 (diff) | |
| download | decky-loader-7611e381a8e3717d3b8a77b299c22042b9c97ea6.tar.gz decky-loader-7611e381a8e3717d3b8a77b299c22042b9c97ea6.zip | |
make url scheme compatible
| -rw-r--r-- | backend/decky_loader/browser.py | 6 | ||||
| -rw-r--r-- | frontend/src/store.tsx | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/backend/decky_loader/browser.py b/backend/decky_loader/browser.py index 09788a40..0f2044f8 100644 --- a/backend/decky_loader/browser.py +++ b/backend/decky_loader/browser.py @@ -20,7 +20,7 @@ from typing import Dict, List, TypedDict # Local modules from .localplatform.localplatform import chown, chmod, get_chown_plugin_path from .loader import Loader, Plugins -from .helpers import get_ssl_context, download_remote_binary_to_path +from .helpers import get_ssl_context, download_remote_binary_to_path, get_loader_version from .enums import UserType from .settings import SettingsManager @@ -222,7 +222,9 @@ class PluginBrowser: case _: storeUrl = "https://plugins.deckbrew.xyz/plugins" logger.info(f"Incrementing installs for {name} from URL {storeUrl} (version {version})") async with ClientSession() as client: - res = await client.post(storeUrl+f"/{name}/versions/{version}/increment?isUpdate={isInstalled}", ssl=get_ssl_context()) + res = await client.post(storeUrl+f"/{name}/versions/{version}/increment?isUpdate={isInstalled}", headers={ + "X-Decky-Version": get_loader_version() + } ssl=get_ssl_context()) if res.status != 200: logger.error(f"Server did not accept install count increment request. code: {res.status}") diff --git a/frontend/src/store.tsx b/frontend/src/store.tsx index cd880789..55017a66 100644 --- a/frontend/src/store.tsx +++ b/frontend/src/store.tsx @@ -53,7 +53,7 @@ export async function getStore(): Promise<Store> { export async function getStoreBaseURL(): Promise<string> { let store = await getSetting<Store | null>('store', null); - let customURL = await getSetting<string>('store-url', 'https://plugins.deckbrew.xyz'); + let customURL = await getSetting<string>('store-url', 'https://plugins.deckbrew.xyz/plugins'); let storeURL; if (store === null) { console.log('Could not get store, using Default.'); @@ -62,17 +62,17 @@ export async function getStoreBaseURL(): Promise<string> { } switch (+store) { case Store.Default: - storeURL = 'https://plugins.deckbrew.xyz'; + storeURL = 'https://plugins.deckbrew.xyz/plugins'; break; case Store.Testing: - storeURL = 'https://testing.deckbrew.xyz'; + storeURL = 'https://testing.deckbrew.xyz/plugins'; break; case Store.Custom: storeURL = customURL; break; default: console.error('Somehow you ended up without a standard URL, using the default URL.'); - storeURL = 'https://plugins.deckbrew.xyz'; + storeURL = 'https://plugins.deckbrew.xyz/plugins'; break; } return storeURL; @@ -91,7 +91,7 @@ export async function getPluginList( const storeURL = await getStoreBaseURL(); - return fetch(storeURL + '/plugins' + query, { + return fetch(storeURL + query, { method: 'GET', headers: { 'X-Decky-Version': version.current, |
