0.1 release with build script finished

This commit is contained in:
abbie 2022-01-27 18:23:06 +00:00
parent 668ce74ea2
commit efc5335d5f
No known key found for this signature in database
GPG key ID: 04DDE463F9200F87

View file

@ -1,7 +1,20 @@
#!/bin/sh
export debug="true"
export debug="false"
export version="0.1"
if [ $debug = "true" ]; then
echo "NOTE: This is going to be a development build. Please make sure you downloaded the point version from the 'about' tab if you wanted a stabler version."
sed -i "s/VERZON/$version-$(git rev-parse HEAD)/g" src/main.rs
cargo build
sed -i "s/$version-$(git rev-parse HEAD)/VERZON/g" src/main.rs
mv target/debug/lintc .
echo "Built. Binary stored at lintc in current directory."
fi
if [ $debug = "false" ]; then
echo "Building point version."
sed -i "s/VERZON/$version/g" src/main.rs
cargo build --release
sed -i "s/$version/VERZON/g" src/main.rs
mv target/release/lintc .
echo "Built. Binary stored at lintc in current directory."
fi