Commit f6691e91 authored by Drew's avatar Drew

Update release script for new CI artifact format

parent 2f0a57e0
Pipeline #866 passed with stage
if [ ! -f artifacts-linux.tgz ]; then
echo "Missing artifacts-linux.tgz"
if [ ! -f artifacts-linux.zip ]; then
echo "Missing artifacts-linux.zip"
exit 1
fi
if [ ! -f artifacts-osx.tgz ]; then
echo "Missing artifacts-osx.tgz"
if [ ! -f artifacts-osx.zip ]; then
echo "Missing artifacts-osx.zip"
exit 1
fi
echo "version to tag:"
read version
tar xf artifacts-linux.tgz
tar c bin/ | pixz -9 -o atbuild-${version}-linux.tar.xz
rm -rf /tmp/build
unzip artifacts-linux.zip -d /tmp/build/
tar c -C /tmp/build bin | pixz -9 -o atbuild-${version}-linux.tar.xz
#the OSX on the other hand is in .atllbuild
rm -rf /tmp/build
mkdir -p /tmp/build/bin
tar xf artifacts-osx.tgz -C /tmp/build/
unzip artifacts-osx.zip -d /tmp/build/
cp /tmp/build/.atllbuild/products/atbuild /tmp/build/bin/atbuild
tar c -C /tmp/build bin | pixz -9 -o atbuild-${version}-macosx.tar.xz
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment