Skip to content

Commit ab74fa4

Browse files
committed
Update build script to generate releases
(cherry picked from commit ca18186)
1 parent a91ab04 commit ab74fa4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ function build {
4141
builddir=$(setuptree)
4242
cp $buildpath/$target $builddir/gh-ost/usr/bin
4343
cd $buildpath
44-
fpm -v "${RELEASE_VERSION}" --epoch 1 -f -s dir -n gh-ost -m 'shlomi-noach <[email protected]>' --description "GitHub's Online Schema Migrations for MySQL " --url "https://github.com/github/gh-ost" --vendor "GitHub" --license "Apache 2.0" -C $builddir/gh-ost --prefix=/ -t rpm --rpm-rpmbuild-define "_build_id_links none" .
45-
fpm -v "${RELEASE_VERSION}" --epoch 1 -f -s dir -n gh-ost -m 'shlomi-noach <[email protected]>' --description "GitHub's Online Schema Migrations for MySQL " --url "https://github.com/github/gh-ost" --vendor "GitHub" --license "Apache 2.0" -C $builddir/gh-ost --prefix=/ -t deb --deb-no-default-config-files .
44+
fpm -v "${RELEASE_VERSION}" --epoch 1 -f -s dir -n gh-ost -m 'GitHub' --description "GitHub's Online Schema Migrations for MySQL " --url "https://github.com/github/gh-ost" --vendor "GitHub" --license "Apache 2.0" -C $builddir/gh-ost --prefix=/ -t rpm --rpm-rpmbuild-define "_build_id_links none" .
45+
fpm -v "${RELEASE_VERSION}" --epoch 1 -f -s dir -n gh-ost -m 'GitHub' --description "GitHub's Online Schema Migrations for MySQL " --url "https://github.com/github/gh-ost" --vendor "GitHub" --license "Apache 2.0" -C $builddir/gh-ost --prefix=/ -t deb --deb-no-default-config-files .
46+
cd -
4647
fi
4748
}
4849

@@ -63,10 +64,13 @@ main() {
6364
mkdir -p ${buildpath}
6465
rm -rf ${buildpath:?}/*
6566
build GNU/Linux linux linux amd64
66-
# build macOS osx darwin amd64
67+
build macOS osx darwin amd64
6768

6869
echo "Binaries found in:"
6970
find $buildpath/gh-ost* -type f -maxdepth 1
71+
72+
echo "Checksums:"
73+
(cd $buildpath && shasum -a256 gh-ost* 2>/dev/null)
7074
}
7175

7276
main "$@"

0 commit comments

Comments
 (0)