From 31aeff81918db68cffc55c9d57cf5d4f4faa7740 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Fri, 12 Nov 2021 07:44:58 +0300 Subject: [PATCH] change output filename --- build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 277bf73..e6f5c61 100755 --- a/build.sh +++ b/build.sh @@ -5,4 +5,11 @@ then mkdir bin fi -crystal build --progress --no-debug --release src/vk0nline.cr -o bin/vk0nline.x86_64-lnx +ARCH=`uname -m` +OS=`uname | tr '[:upper:]' '[:lower:]'` +VERSION=`cat shard.yml | grep -m 1 'version: ' | sed -e 's/version: //g'` + +echo "Build $VERSION for `uname` `uname -m`" + +crystal build --progress --no-debug --release src/vk0nline.cr -o bin/vk0nline-$VERSION.$OS-$ARCH +