mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 03:23:09 +03:00
build: make release tarballs extract to directory
Release tarballs previously didn't include a release directory, so the files would be unceremoniously dumped into the user's current directory when extracted. Fixes #1400.
This commit is contained in:
parent
7e3b9411d6
commit
5918bd1fa1
12
sh/release
12
sh/release
@ -12,12 +12,22 @@ else
|
||||
ver="$(git rev-parse HEAD)"
|
||||
fi
|
||||
|
||||
traced () {
|
||||
echo '$' "$@" >&2; "$@"
|
||||
}
|
||||
|
||||
mkdir -p release
|
||||
|
||||
for plat in linux64 darwin
|
||||
do
|
||||
sh/cross urbit "$plat"
|
||||
|
||||
tmp=$(mktemp -d)
|
||||
mkdir -p $tmp/urbit-$plat-$ver
|
||||
traced cp -r cross/$plat/* $tmp/urbit-$plat-$ver
|
||||
|
||||
echo "packaging release/urbit-$plat-$ver.tgz"
|
||||
(cd cross/$plat; tar cz .) > release/urbit-$plat-$ver.tgz
|
||||
(cd $tmp; tar cz urbit-$plat-$ver) > release/urbit-$plat-$ver.tgz
|
||||
|
||||
rm -rf $tmp
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user