Skip to content

Commit

Permalink
fix release builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Glonek committed Nov 16, 2022
1 parent 5fecc64 commit d23acba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/build-release.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
# dependencies
echo "step 1"
which dpkg-deb; [ $? -ne 0 ] && brew install dpkg
which rpmbuild; [ $? -ne 0 ] && brew install rpm
which upx; [ $? -ne 0 ] && brew install upx

# version
echo "step 2"
ver=$(cat ../VERSION.md)

# cleanup
echo "step 3"
rm -rf aerolab-rpm-centos
rm -f aerolab-*
rm -rf final/aerolab-*
rm -f notarize/*.zip notarize/*.pkg
rm -f notarize/aerolab*

# compile
echo "step 4"
cd ../src && bash ./build.sh || exit 1
cd ../bin
mv ../src/aerolab-* .
mkdir -p final

# amd64
echo "step 5"
mv aerolab-linux-amd64 aerolab
zip final/aerolab-linux-amd64.zip aerolab
rm -rf deb
Expand Down Expand Up @@ -46,6 +52,7 @@ rpmbuild --target=x86_64-redhat-linux --buildroot $(pwd)/aerolab-rpm-centos -bb
mv aerolab-linux-x86_64.rpm final/

# arm64
echo "step 6"
mv aerolab-linux-arm64 aerolab
zip final/aerolab-linux-arm64.zip aerolab
rm -rf deb
Expand Down

0 comments on commit d23acba

Please sign in to comment.