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 +