From 6232e3da58b3fc499da20c3021683209aa551a70 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Wed, 7 Dec 2022 19:27:32 -0500 Subject: Add custom CDN support for custom stores (#269) * Add custom CDN support for custom stores * Update Python for CI --- frontend/src/store.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'frontend/src/store.tsx') 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, }); -- cgit v1.2.3