mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
install: Catch version errors when building DEBs
Make sure that the Debian package we build conforms to the expected naming scheme else, it's possible that something is off. A scenario we've encountered is bumping `share/version.txt`, but not `debian/changelog`, which would create a Debian package with an older version.
This commit is contained in:
parent
a32522f6c8
commit
eb2d114ea7
1 changed files with 4 additions and 5 deletions
|
@ -64,10 +64,9 @@ def main():
|
||||||
|
|
||||||
# dpkg-buildpackage produces a .deb file in the parent folder
|
# dpkg-buildpackage produces a .deb file in the parent folder
|
||||||
# that needs to be copied to the `deb_dist` folder manually
|
# that needs to be copied to the `deb_dist` folder manually
|
||||||
for item in root.parent.glob(f"dangerzone_{version}_*.deb"):
|
src = root.parent / f"dangerzone_{version}_amd64.deb"
|
||||||
arch = item.stem.split("_")[-1]
|
destination = root / "deb_dist" / f"dangerzone_{version}-{deb_ver}_amd64.deb"
|
||||||
destination = root / "deb_dist" / f"dangerzone_{version}-{deb_ver}_{arch}.deb"
|
shutil.move(src, destination)
|
||||||
shutil.move(item, destination)
|
|
||||||
print(f"sudo dpkg -i {destination}")
|
print(f"sudo dpkg -i {destination}")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue