Merge pull request #341 from aclist/fix/7.0.0b10-hotfix

fix: extract tarfile correctly
This commit is contained in:
aclist authored and GitHub committed 2026-06-06 02:02:51 +09:00
commit 7e8b8eb7f7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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: