From 421dca79b6f28e230486492b9d932b901038949b Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Tue, 1 Oct 2024 17:06:59 +0300 Subject: [PATCH] Be more explicit when building Debian packages --- install/linux/build-deb.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/install/linux/build-deb.py b/install/linux/build-deb.py index 10d73be33..82d87a605 100755 --- a/install/linux/build-deb.py +++ b/install/linux/build-deb.py @@ -64,11 +64,10 @@ 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) - print(f"sudo dpkg -i {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}") if __name__ == "__main__":