From 79af78a7e0685804d5250742bfe89396ae6302ab Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sat, 6 Jun 2026 02:00:15 +0900 Subject: [PATCH] fix: extract tarfile correctly --- dzgui/const/constants.py | 2 +- dzgui/managers/update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dzgui/const/constants.py b/dzgui/const/constants.py index d204e07..4f0bf2e 100644 --- a/dzgui/const/constants.py +++ b/dzgui/const/constants.py @@ -79,4 +79,4 @@ LOG_FILTERS = ("CRITICAL", "WARNING", "INFO", "DEBUG") TMP_PATH = "/tmp" TMP_TARBALL = "/tmp/dzgui.tar.gz" -TMP_EXE = "/tmp/dzgui" +TMP_EXE = "/tmp/dzgui/dzgui" diff --git a/dzgui/managers/update.py b/dzgui/managers/update.py index abe6818..e69e4f8 100644 --- a/dzgui/managers/update.py +++ b/dzgui/managers/update.py @@ -42,7 +42,7 @@ class UpdateManager: with tarfile.open(TMP_TARBALL) as tar: tar.extractall(TMP_PATH) - shutil.move(TMP_EXE, exe_path) + shutil.copy(TMP_EXE, exe_path) proc = subprocess.run([exe_path, "self", "restore"]) if proc.returncode == 0: