From fe40346a016ab7354c53d591275679d74faae8fe Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 27 May 2026 04:00:49 +0900 Subject: [PATCH] chore: update user on tarfile --- scripts/release.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/release.py b/scripts/release.py index c80315e..2863dcc 100644 --- a/scripts/release.py +++ b/scripts/release.py @@ -51,7 +51,11 @@ if proc.returncode == 0: output_exe.rename(release_exe) tarpath = output.joinpath(tarname) with tarfile.open(tarpath, "w:gz") as tar: - tar.add(release_exe, arcname=appname) + info = tar.gettarinfo(release_exe) + info.uname = appname + info.name = appname + with open(release_exe, "rb") as f: + tar.addfile(info, f) print(f"Wrote tarfile to '{tarpath}'") proc = subprocess.run([release_exe, "-v"], capture_output=True, text=True)