Skip to content

Commit 39bba9c

Browse files
author
dm-2
authored
Merge pull request #1078 from github/fix-build-script
Update build script to generate releases
2 parents 1f780ae + 09c35bd commit 39bba9c

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
@@ -40,8 +40,9 @@ function build {
4040
builddir=$(setuptree)
4141
cp $buildpath/$target $builddir/gh-ost/usr/bin
4242
cd $buildpath
43-
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" .
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 deb --deb-no-default-config-files .
43+
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" .
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 deb --deb-no-default-config-files .
45+
cd -
4546
fi
4647
}
4748

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

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

7175
main "$@"

0 commit comments

Comments
 (0)