shrub/sh/release-king-linux64-static
2020-01-23 21:34:21 -08:00

26 lines
342 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
pushd pkg/hs
king=$(bash $(nix-build --no-link -A fullBuildScript))
popd
out="release/king-linux64-static-$ver"
cp "$king"/bin/urbit-king "$out"
ldd "$out"