From b7010fd4f0c981b2d0687906cb28342e2cbeaca2 Mon Sep 17 00:00:00 2001 From: Tormak <63308171+Tormak9970@users.noreply.github.com> Date: Mon, 22 Jan 2024 13:19:10 -0500 Subject: [PATCH 1/2] feat: added manifest v9 support --- manifest-schema.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest-schema.json b/manifest-schema.json index 3ffc973..94cff59 100644 --- a/manifest-schema.json +++ b/manifest-schema.json @@ -31,7 +31,7 @@ "description": "The name of the theme. Make it short and catchy! (IMPORTANT: Once submitted, this name can not be changed)", "type": "string" }, - "displayName": { + "display_name": { "description": "The display name of the theme. This is what is shown on the store and to users.", "type": "string" }, @@ -70,13 +70,13 @@ "uniqueItems": true }, "target": { - "description": "A theme target or an array of theme targets. These help users tell what the theme styles at a glance.", + "description": "The target(s) for your theme. These help users tell what the theme styles at a glance.", "oneOf": [ { "type": "array", "uniqueItems": true, "items": { - "$ref": "#/definitions/InjectionTargets" + "$ref": "#/definitions/ThemeTarget" } }, { From 2bc00e99dd5bc4fa6e51aeecf636bbac855cefeb Mon Sep 17 00:00:00 2001 From: Tormak <63308171+Tormak9970@users.noreply.github.com> Date: Mon, 22 Jan 2024 13:26:41 -0500 Subject: [PATCH 2/2] fix: auto update workflow now pulls proper theme target enum --- .github/workflows/checkForUpdates.yml | 5 +++-- manifest-schema.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checkForUpdates.yml b/.github/workflows/checkForUpdates.yml index 8f8142f..4076303 100644 --- a/.github/workflows/checkForUpdates.yml +++ b/.github/workflows/checkForUpdates.yml @@ -110,14 +110,14 @@ jobs: const data = await response.json(); //? Check for New Targets - const listFromSchema = schema.properties.target.enum; + const listFromSchema = schema.definitions.ThemeTarget.enum; const listFromApi = Object.keys(data.filters); //TODO: check for differences const listsAreEqual = listFromSchema.every((elem) => listFromApi.includes(elem)) && listFromApi.every((elem) => listFromSchema.includes(elem)); if (!listsAreEqual) { newTargets = true; - schema.properties.target.enum = listFromApi; + schema.definitions.ThemeTarget.enum = listFromApi; } const themePyPath = path.join(cwdPath, "css-loader", "css_theme.py"); @@ -131,6 +131,7 @@ jobs: if (currentVersion !== newVersion) { newManifestVersion = true; + schema.default.manifest_version = newVersion; schema.properties.manifest_version.description = `The manifest version. This should almost always be the latest version.\n\nLatest Version: ${newVersion}`; schema.properties.manifest_version.const = newVersion; } diff --git a/manifest-schema.json b/manifest-schema.json index 94cff59..a5f8274 100644 --- a/manifest-schema.json +++ b/manifest-schema.json @@ -8,7 +8,7 @@ "description": "Something to spice up your Steamdeck experience!", "author": "You", "version": "v1.0.0", - "manifest_version": 8, + "manifest_version": 9, "target": "Home", "tabs": { "default": [