2019-03-05 03:43:53 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
if [ -n "${TRAVIS_TAG-}" ]
|
|
|
|
then
|
|
|
|
ver="$TRAVIS_TAG"
|
|
|
|
elif [ -n "${TRAVIS_COMMIT-}" ]
|
|
|
|
then
|
|
|
|
ver="$TRAVIS_COMMIT"
|
|
|
|
else
|
|
|
|
ver="$(git rev-parse HEAD)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p release
|
|
|
|
|
2019-12-11 10:39:52 +03:00
|
|
|
stack clean # Make sure we optimize
|
|
|
|
stack install king --local-bin-path ./release
|
|
|
|
mv release/king release/king-linux64-$ver
|
|
|
|
|
|
|
|
# OSX
|
|
|
|
# otool -L ./release/king-darwin-$ver
|
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
for plat in linux64 darwin
|
|
|
|
do
|
|
|
|
sh/cross urbit "$plat"
|
|
|
|
|
|
|
|
echo "packaging release/urbit-$plat-$ver.tgz"
|
|
|
|
(cd cross/$plat; tar cz .) > release/urbit-$plat-$ver.tgz
|
|
|
|
done
|