summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-11 12:36:00 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-11 12:36:00 -0400
commit6e86e05beb0f054f82e6b7e67b265358245b1a2b (patch)
tree06d86cd67f1380f6b0a8bc115d7f7b926eabd42a
parente31f207b0584abd6b97e79e90caa48378477feb1 (diff)
downloaddecky-lsfg-vk-6e86e05beb0f054f82e6b7e67b265358245b1a2b.tar.gz
decky-lsfg-vk-6e86e05beb0f054f82e6b7e67b265358245b1a2b.zip
update remote bin for improved workflow, modify zip backend actions
-rw-r--r--main.py22
-rw-r--r--package.json9
2 files changed, 15 insertions, 16 deletions
diff --git a/main.py b/main.py
index b7bfb62..8777cd4 100644
--- a/main.py
+++ b/main.py
@@ -1,5 +1,5 @@
import os
-import tarfile
+import zipfile
import shutil
import subprocess
import tempfile
@@ -12,16 +12,16 @@ import asyncio
class Plugin:
async def install_lsfg_vk(self) -> dict:
- """Install lsfg-vk by extracting the tar.gz file to ~/.local"""
+ """Install lsfg-vk by extracting the zip file to ~/.local"""
try:
- # Get the path to the lsfg-vk-latest.tar.gz file in the bin directory
+ # Get the path to the lsfg-vk.zip file in the bin directory
plugin_dir = os.path.dirname(os.path.realpath(__file__))
- tar_path = os.path.join(plugin_dir, "bin", "lsfg-vk-latest.tar.gz")
+ zip_path = os.path.join(plugin_dir, "bin", "lsfg-vk.zip")
- # Check if the tar.gz file exists
- if not os.path.exists(tar_path):
- decky.logger.error(f"lsfg-vk-latest.tar.gz not found at {tar_path}")
- return {"success": False, "error": "lsfg-vk-latest.tar.gz file not found"}
+ # Check if the zip file exists
+ if not os.path.exists(zip_path):
+ decky.logger.error(f"lsfg-vk.zip not found at {zip_path}")
+ return {"success": False, "error": "lsfg-vk.zip file not found"}
# Get the user's home directory
user_home = os.path.expanduser("~")
@@ -32,11 +32,11 @@ class Plugin:
os.makedirs(local_lib_dir, exist_ok=True)
os.makedirs(local_share_dir, exist_ok=True)
- # Extract the tar.gz file
- with tarfile.open(tar_path, 'r:gz') as tar_ref:
+ # Extract the zip file
+ with zipfile.ZipFile(zip_path, 'r') as zip_ref:
# Use /tmp for temporary extraction since we may not have write permissions in plugin dir
with tempfile.TemporaryDirectory() as temp_dir:
- tar_ref.extractall(temp_dir)
+ zip_ref.extractall(temp_dir)
# Look for the extracted files and copy them to the correct locations
for root, dirs, files in os.walk(temp_dir):
diff --git a/package.json b/package.json
index f80a47e..dd96729 100644
--- a/package.json
+++ b/package.json
@@ -40,12 +40,11 @@
"tslib": "^2.7.0"
},
"remote_binary_bundling" : true,
- "remote_binary":
- [
+ "remote_binary": [
{
- "name": "lsfg-vk-latest.tar.gz",
- "url": "https://github.com/xXJSONDeruloXx/lsfg-vk/releases/download/latest/lsfg-vk-latest.tar.gz",
- "sha256hash": "913e7bba9f1b58339df0b03cd9a8c4dd8d165912224a869b9ee8dd983ab8f3f7"
+ "name": "lsfg-vk.zip",
+ "url": "https://github.com/xXJSONDeruloXx/lsfg-vk/releases/download/upstream-16221076481/lsfg-vk.zip",
+ "sha256hash": "184a1782ddf0e54331fdb1c58f721e910b6fba1a8c89d00e813a3f01a2379b06"
}
],
"pnpm": {