labast/build.bat

11 lines
429 B
Batchfile
Raw Normal View History

2024-02-05 07:05:48 +00:00
@echo off
2024-02-05 12:13:44 +00:00
echo Building for Windows...
2024-02-05 07:05:48 +00:00
cargo build --release
2024-02-05 12:13:44 +00:00
echo Building for Linux...
2024-02-05 07:05:48 +00:00
cargo zigbuild --release --target x86_64-unknown-linux-gnu
echo Copy binaries to bin folder...
2024-02-05 07:05:48 +00:00
copy target\release\labast.exe bin\ /Y
2024-02-05 12:13:44 +00:00
copy target\x86_64-unknown-linux-gnu\release\labast bin\ /Y
echo Creating source code tar.gz archive...
tar --exclude="./bin" --exclude="./target" --exclude=".git" -cvzf bin\labast-latest.tar.gz *
2024-02-05 12:13:44 +00:00
echo Done!