mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
chore: include version number in tarball
This commit is contained in:
1 parent
418c0f026d
commit
d5309c1ddf
1 file changed
+3
-3
+3
-3
@@ -20,9 +20,10 @@ interpreter = "py3"
|
|||||||
arch = "none"
|
arch = "none"
|
||||||
target = "any"
|
target = "any"
|
||||||
version = metadata.version(APP_NAME_LOWER)
|
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"
|
entrypoint = "dzgui.main:main"
|
||||||
|
|
||||||
env = os.environ
|
env = os.environ
|
||||||
@@ -39,7 +40,6 @@ if proc.returncode == 0:
|
|||||||
output_exe = root.joinpath("pyapp-latest/target/release/pyapp")
|
output_exe = root.joinpath("pyapp-latest/target/release/pyapp")
|
||||||
release_exe = output.joinpath(APP_NAME_LOWER)
|
release_exe = output.joinpath(APP_NAME_LOWER)
|
||||||
output_exe.rename(release_exe)
|
output_exe.rename(release_exe)
|
||||||
tarname = APP_NAME_LOWER + ".tar.gz"
|
|
||||||
tarpath = output.joinpath(tarname)
|
tarpath = output.joinpath(tarname)
|
||||||
with tarfile.open(tarpath, "w:gz") as tar:
|
with tarfile.open(tarpath, "w:gz") as tar:
|
||||||
tar.add(release_exe)
|
tar.add(release_exe)
|
||||||
|
|||||||
Reference in new issue
Block a user