mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 11:12:00 +00:00
Add custom CDN support for custom stores (#269)
* Add custom CDN support for custom stores * Update Python for CI
This commit is contained in:
@@ -10,6 +10,7 @@ export enum Store {
|
|||||||
export interface StorePluginVersion {
|
export interface StorePluginVersion {
|
||||||
name: string;
|
name: string;
|
||||||
hash: string;
|
hash: string;
|
||||||
|
artifact: string | undefined | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StorePlugin {
|
export interface StorePlugin {
|
||||||
@@ -73,9 +74,11 @@ export async function installFromURL(url: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function requestPluginInstall(plugin: string, selectedVer: StorePluginVersion) {
|
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', {
|
await window.DeckyPluginLoader.callServerMethod('install_plugin', {
|
||||||
name: plugin,
|
name: plugin,
|
||||||
artifact: `https://cdn.tzatzikiweeb.moe/file/steam-deck-homebrew/versions/${selectedVer.hash}.zip`,
|
artifact: artifactUrl,
|
||||||
version: selectedVer.name,
|
version: selectedVer.name,
|
||||||
hash: selectedVer.hash,
|
hash: selectedVer.hash,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user