diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-10-21 23:54:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 23:54:40 -0400 |
| commit | 7e6d29d9cb731d2648399282be87adb98e183084 (patch) | |
| tree | 58db3626b3678546e5cb1c4de9bcfc627fde46c7 /py_modules/lsfg_vk/installation.py | |
| parent | 7b5f3cb8b3d17ad125d2f40a58fbba80e863d703 (diff) | |
| parent | 192716ecfd85199f2d5704314eb7873635d190e9 (diff) | |
| download | decky-lsfg-vk-7e6d29d9cb731d2648399282be87adb98e183084.tar.gz decky-lsfg-vk-7e6d29d9cb731d2648399282be87adb98e183084.zip | |
Merge pull request #190 from xXJSONDeruloXx/cleanup-miscv0.12.1
More cleanup
Diffstat (limited to 'py_modules/lsfg_vk/installation.py')
| -rw-r--r-- | py_modules/lsfg_vk/installation.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/py_modules/lsfg_vk/installation.py b/py_modules/lsfg_vk/installation.py index a3b000f..4329d49 100644 --- a/py_modules/lsfg_vk/installation.py +++ b/py_modules/lsfg_vk/installation.py @@ -26,7 +26,6 @@ class InstallationService(BaseService): def __init__(self, logger=None): super().__init__(logger) - # File paths using constants self.lib_file = self.local_lib_dir / LIB_FILENAME self.json_file = self.local_share_dir / JSON_FILENAME @@ -37,26 +36,20 @@ class InstallationService(BaseService): InstallationResponse with success status and message/error """ try: - # Get the path to the zip file - need to go up to plugin root from py_modules/lsfg_vk/ plugin_dir = Path(__file__).parent.parent.parent zip_path = plugin_dir / BIN_DIR / ZIP_FILENAME - # Check if the zip file exists if not zip_path.exists(): error_msg = f"{ZIP_FILENAME} not found at {zip_path}" self.log.error(error_msg) return self._error_response(InstallationResponse, error_msg, message="") - # Create directories if they don't exist self._ensure_directories() - # Extract and install files self._extract_and_install_files(zip_path) - # Create the config file self._create_config_file() - # Create the lsfg launch script self._create_lsfg_launch_script() self.log.info("lsfg-vk installed successfully") @@ -67,7 +60,6 @@ class InstallationService(BaseService): self.log.error(error_msg) return self._error_response(InstallationResponse, str(e), message="") except Exception as e: - # Catch unexpected errors but log them separately error_msg = f"Unexpected error installing lsfg-vk: {str(e)}" self.log.error(error_msg) return self._error_response(InstallationResponse, str(e), message="") |
