mirror of
https://github.com/urbit/shrub.git
synced 2024-12-24 20:47:27 +03:00
24 lines
368 B
Bash
Executable File
24 lines
368 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
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
|
|
|
|
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
|