summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorNGnius (Graham) <ngniusness@gmail.com>2022-12-07 19:27:32 -0500
committerGitHub <noreply@github.com>2022-12-07 16:27:32 -0800
commit6232e3da58b3fc499da20c3021683209aa551a70 (patch)
tree29ac952349cc9283a8e59979e2738ab4b51829cb /frontend
parent35e46f9ccba00892a759fd5c5dab0b6bf2bb5697 (diff)
downloaddecky-loader-6232e3da58b3fc499da20c3021683209aa551a70.tar.gz
decky-loader-6232e3da58b3fc499da20c3021683209aa551a70.zip
Add custom CDN support for custom stores (#269)v2.4.6-pre1
* Add custom CDN support for custom stores * Update Python for CI
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/store.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/src/store.tsx b/frontend/src/store.tsx
index 9b1c5d2e..7ed71e2a 100644
--- a/frontend/src/store.tsx
+++ b/frontend/src/store.tsx
@@ -10,6 +10,7 @@ export enum Store {
export interface StorePluginVersion {
name: string;
hash: string;
+ artifact: string | undefined | null;
}
export interface StorePlugin {
@@ -73,9 +74,11 @@ export async function installFromURL(url: string) {
}
export async function requestPluginInstall(plugin: string, selectedVer: StorePluginVersion) {
+ const artifactUrl =
+ selectedVer.artifact ?? `https://cdn.tzatzikiweeb.moe/file/steam-deck-homebrew/versions/${selectedVer.hash}.zip`;
await window.DeckyPluginLoader.callServerMethod('install_plugin', {
name: plugin,
- artifact: `https://cdn.tzatzikiweeb.moe/file/steam-deck-homebrew/versions/${selectedVer.hash}.zip`,
+ artifact: artifactUrl,
version: selectedVer.name,
hash: selectedVer.hash,
});