Be more explicit when building Debian packages

This commit is contained in:
Alex Pyrgiotis 2024-10-01 17:06:59 +03:00
parent 598740a80b
commit 421dca79b6
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -64,10 +64,9 @@ def main():
# dpkg-buildpackage produces a .deb file in the parent folder
# that needs to be copied to the `deb_dist` folder manually
for item in root.parent.glob(f"dangerzone_{version}_*.deb"):
arch = item.stem.split("_")[-1]
destination = root / "deb_dist" / f"dangerzone_{version}-{deb_ver}_{arch}.deb"
shutil.move(item, destination)
src = root.parent / f"dangerzone_{version}_amd64.deb"
destination = root / "deb_dist" / f"dangerzone_{version}-{deb_ver}_amd64.deb"
shutil.move(src, destination)
print(f"sudo dpkg -i {destination}")