update to 0.2.6

This commit is contained in:
2022-08-05 23:29:36 +03:00
parent 068c3a48f4
commit 2ce1701039
3 changed files with 7 additions and 6 deletions

View File

@@ -15,9 +15,11 @@ libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
if [ -z $libc ];
then
# build libc
crystal build ./src/pmng.cr --release --progress -L/usr/lib/ -o ./dist/pmng-0.2.5-linux-x86_64
OUTPUT=pmng-$(shards version)-linux-x86_64
crystal build ./src/pmng.cr --release --progress -o ./dist/$OUTPUT
tar -cJf ./dist/$OUTPUT.tar.xz ./dist/$OUTPUT
else
# Build musl
crystal build ./src/pmng.cr --release --progress -o ./dist/pmng-0.2.5-linux-musl-x86_64
crystal build ./src/pmng.cr --release --progress -o ./dist/pmng-$(shards version)-linux-musl-x86_64
fi