add scripts/release.sh for building release binaries (#2399)

This commit is contained in:
Disconnect3d 2024-08-29 18:19:41 +02:00 committed by GitHub
parent 6209c5b362
commit 75615d45bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 0 deletions

15
scripts/release.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# This script performs a release build similar to what CI/CD does
# It just does everything at once :)
#
# It can be useful if one needs to build the release binaries manually
O="--extra-experimental-features nix-command --extra-experimental-features flakes"
nix build $O '.#pwndbg' -o result-pwndbg
nix build $O '.#rpm' -o dist-rpm
nix build $O '.#deb' -o dist-deb
nix build $O '.#apk' -o dist-apk
nix build $O '.#archlinux' -o dist-archlinux
nix build $O '.#tarball' -o dist-tarball