devel #54

Manually merged
CastroFidel merged 11 commits from minergenon/winehelper:devel into master 2025-09-10 12:39:22 +00:00
Showing only changes of commit bf3a30487e - Show all commits

View File

@@ -42,10 +42,14 @@ class DependencyManager:
def _get_dependencies_path(self):
"""Определяет и возвращает путь к скрипту dependencies.sh."""
winehelper_script_path = os.environ.get("RUN_SCRIPT")
if winehelper_script_path and os.path.exists(winehelper_script_path):
return os.path.join(os.path.dirname(winehelper_script_path), 'dependencies.sh')
return None
if Var.DATA_PATH:
base_path = Var.DATA_PATH
elif Var.RUN_SCRIPT and os.path.exists(Var.RUN_SCRIPT):
base_path = os.path.dirname(Var.RUN_SCRIPT)
else:
return None
return os.path.join(base_path, 'dependencies.sh')
def _calculate_file_hash(self):
"""Вычисляет хэш SHA256 файла зависимостей."""