mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
release: prepare v0.2.6 multi-architecture packages
This commit is contained in:
1 parent
0a552f7ee8
commit
50d9d58ad0
24 files changed
+264
-60
No files matched your search
@@ -12,8 +12,8 @@ test("skin catalog always includes the three protected built-ins and exposes onl
|
||||
globalThis.fetch = async () => new Response(JSON.stringify({
|
||||
defaultSkinId: "sample-skin",
|
||||
skins: [
|
||||
{ id: "sample-skin", name: "Sample", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.5-preview", installedAt: 1, enabled: true },
|
||||
{ id: "disabled-skin", name: "Disabled", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.5-preview", installedAt: 2, enabled: false },
|
||||
{ id: "sample-skin", name: "Sample", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.6", installedAt: 1, enabled: true },
|
||||
{ id: "disabled-skin", name: "Disabled", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.6", installedAt: 2, enabled: false },
|
||||
{ id: "community.illusia-voice", name: "Spoofed", version: "9.9.9", author: "Other", license: "MIT", minAppVersion: "0.0.1", installedAt: 3 },
|
||||
],
|
||||
}), { status: 200, headers: { "content-type": "application/json" } });
|
||||
@@ -40,7 +40,7 @@ test("invalid or disabled instance defaults safely fall back to the protected da
|
||||
const originalFetch = globalThis.fetch;
|
||||
globalThis.fetch = async () => new Response(JSON.stringify({
|
||||
defaultSkinId: "disabled-skin",
|
||||
skins: [{ id: "disabled-skin", name: "Disabled", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.5-preview", installedAt: 2, enabled: false }],
|
||||
skins: [{ id: "disabled-skin", name: "Disabled", version: "1.0.0", author: "Test", license: "MIT", minAppVersion: "0.2.6", installedAt: 2, enabled: false }],
|
||||
}), { status: 200, headers: { "content-type": "application/json" } });
|
||||
|
||||
try {
|
||||
|
||||
@@ -12,7 +12,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
author: "WebSpeak",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "The default light appearance.",
|
||||
minAppVersion: "0.2.5-preview",
|
||||
minAppVersion: "0.2.6",
|
||||
installedAt: 0,
|
||||
builtIn: true,
|
||||
previewKind: "day",
|
||||
@@ -24,7 +24,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
author: "WebSpeak",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "The default dark appearance.",
|
||||
minAppVersion: "0.2.5-preview",
|
||||
minAppVersion: "0.2.6",
|
||||
installedAt: 0,
|
||||
builtIn: true,
|
||||
previewKind: "night",
|
||||
@@ -36,7 +36,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
author: "WebSpeak Project",
|
||||
license: "All rights reserved",
|
||||
description: "A bright original-character art skin for the home, voice room, and demo pages.",
|
||||
minAppVersion: "0.2.5-preview",
|
||||
minAppVersion: "0.2.6",
|
||||
previewUrl: "/skins/illusia-voice-preview.webp",
|
||||
installedAt: 0,
|
||||
builtIn: true,
|
||||
|
||||
@@ -33,7 +33,7 @@ export async function activateStoredSkin(): Promise<InstalledSkin | null> {
|
||||
return activateSkin(selectedId);
|
||||
}
|
||||
|
||||
export async function activateSkin(id: string, expectedVersion?: string, appVersion = "0.2.5-preview", options: SkinLoadOptions = {}): Promise<InstalledSkin | null> {
|
||||
export async function activateSkin(id: string, expectedVersion?: string, appVersion = "0.2.6", options: SkinLoadOptions = {}): Promise<InstalledSkin | null> {
|
||||
// An already retired page must not cancel a newer page's activation.
|
||||
options.signal?.throwIfAborted();
|
||||
pendingActivation?.cancel();
|
||||
|
||||
Reference in new issue
Block a user