From d5309c1ddff297419022cb409c031a27ec538c03 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 18 May 2026 20:37:42 +0900 Subject: [PATCH] chore: include version number in tarball --- scripts/release.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release.py b/scripts/release.py index 7faf0ca..b606ad5 100644 --- a/scripts/release.py +++ b/scripts/release.py @@ -20,9 +20,10 @@ interpreter = "py3" arch = "none" target = "any" version = metadata.version(APP_NAME_LOWER) -filename = f"{APP_NAME_LOWER}-{version}-{interpreter}-{arch}-{target}.whl" +wheelname = f"{APP_NAME_LOWER}-{version}-{interpreter}-{arch}-{target}.whl" +tarname = f"{APP_NAME_LOWER}-{version}.tar.gz" -wheel = str(output.joinpath(filename)) +wheel = str(output.joinpath(wheelname)) entrypoint = "dzgui.main:main" env = os.environ @@ -39,7 +40,6 @@ if proc.returncode == 0: output_exe = root.joinpath("pyapp-latest/target/release/pyapp") release_exe = output.joinpath(APP_NAME_LOWER) output_exe.rename(release_exe) - tarname = APP_NAME_LOWER + ".tar.gz" tarpath = output.joinpath(tarname) with tarfile.open(tarpath, "w:gz") as tar: tar.add(release_exe)