summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-08-24 08:03:25 -0400
committerGitHub <noreply@github.com>2025-08-24 08:03:25 -0400
commit16f93f51f805a3c8a6ee976a708e83952c824c36 (patch)
treea25e91252d94e8c2d8b2787b74e0f282f0e4d6c4
parentab89907bc2ac11fc9760297a0ae0720b7cb3469a (diff)
parent815a7c704228a300b0c54fd5a0f8e99e9c6bb3ae (diff)
downloaddecky-lsfg-vk-16f93f51f805a3c8a6ee976a708e83952c824c36.tar.gz
decky-lsfg-vk-16f93f51f805a3c8a6ee976a708e83952c824c36.zip
Merge pull request #149 from xXJSONDeruloXx/rm-update-button
-rw-r--r--package.json2
-rw-r--r--py_modules/lsfg_vk/plugin.py18
2 files changed, 14 insertions, 6 deletions
diff --git a/package.json b/package.json
index bcc9af4..2419f96 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "decky-lossless-scaling-vk",
- "version": "0.10.3",
+ "version": "0.10.4",
"description": "Use Lossless Scaling on the Steam Deck using the lsfg-vk vulkan layer",
"type": "module",
"scripts": {
diff --git a/py_modules/lsfg_vk/plugin.py b/py_modules/lsfg_vk/plugin.py
index cee6607..f7a8939 100644
--- a/py_modules/lsfg_vk/plugin.py
+++ b/py_modules/lsfg_vk/plugin.py
@@ -306,7 +306,9 @@ class Plugin:
# Self-updater methods
async def check_for_plugin_update(self) -> Dict[str, Any]:
- """Check for plugin updates by comparing current version with latest GitHub release
+ """Check for plugin updates by comparing current version with most recent GitHub release
+
+ Checks for the most recent release including pre-releases, not just the latest stable.
Returns:
Dict containing update information:
@@ -335,8 +337,8 @@ class Plugin:
except Exception as e:
decky.logger.warning(f"Failed to read package.json: {e}")
- # Fetch latest release from GitHub
- api_url = "https://api.github.com/repos/xXJSONDeruloXx/decky-lossless-scaling-vk/releases/latest"
+ # Fetch most recent release from GitHub (including pre-releases)
+ api_url = "https://api.github.com/repos/xXJSONDeruloXx/decky-lossless-scaling-vk/releases"
try:
# Create SSL context that doesn't verify certificates
@@ -345,9 +347,15 @@ class Plugin:
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
- # Use urllib to fetch the latest release info
+ # Use urllib to fetch all releases (sorted by most recent first)
with urllib.request.urlopen(api_url, context=ssl_context) as response:
- release_data = json.loads(response.read().decode('utf-8'))
+ releases_data = json.loads(response.read().decode('utf-8'))
+
+ # Get the most recent release (first item in the array)
+ if not releases_data:
+ raise Exception("No releases found")
+
+ release_data = releases_data[0]
latest_version = release_data.get('tag_name', '').lstrip('v')
release_notes = release_data.get('body', '')