Skip to content

Commit

Permalink
Updated version to v0.1.1 on build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Jul 31, 2024
1 parent 2a84043 commit 2cac702
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
rm -rf dist launcher/target

mkdir -p dist/uartix_0.1.0-1_amd64/opt/uartix
mkdir -p dist/uartix_0.1.0-1_amd64/usr/local/bin
mkdir -p dist/uartix_0.1.0-1_amd64/DEBIAN
mkdir -p dist/uartix_0.1.1_amd64/opt/uartix
mkdir -p dist/uartix_0.1.1_amd64/usr/local/bin
mkdir -p dist/uartix_0.1.1_amd64/DEBIAN

cd launcher
cargo build --release
cargo build --release --target x86_64-pc-windows-gnu
cd ..

cp out/artifacts/Uartix_jar/Uartix.jar dist/uartix_0.1.0-1_amd64/opt/uartix/
cp -r examples dist/uartix_0.1.0-1_amd64/opt/uartix/
cp launcher/target/release/uartix dist/uartix_0.1.0-1_amd64/usr/local/bin/
cp out/artifacts/Uartix_jar/Uartix.jar dist/uartix_0.1.1_amd64/opt/uartix/
cp -r examples dist/uartix_0.1.1_amd64/opt/uartix/
cp launcher/target/release/uartix dist/uartix_0.1.1_amd64/usr/local/bin/

touch dist/uartix_0.1.0-1_amd64/DEBIAN/control
echo "Package: uartix" > dist/uartix_0.1.0-1_amd64/DEBIAN/control
echo "Version: 0.1.0" >> dist/uartix_0.1.0-1_amd64/DEBIAN/control
echo "Architecture: amd64" >> dist/uartix_0.1.0-1_amd64/DEBIAN/control
echo "Maintainer: Nathanne Isip <nathanneisip@gmail.com>" >> dist/uartix_0.1.0-1_amd64/DEBIAN/control
echo "Description: Strange dynamic programming language that performs mathematical computations on a connected Raspberry Pi Pico through UART connectivity." >> dist/uartix_0.1.0-1_amd64/DEBIAN/control
touch dist/uartix_0.1.1_amd64/DEBIAN/control
echo "Package: uartix" > dist/uartix_0.1.1_amd64/DEBIAN/control
echo "Version: 0.1.1" >> dist/uartix_0.1.1_amd64/DEBIAN/control
echo "Architecture: amd64" >> dist/uartix_0.1.1_amd64/DEBIAN/control
echo "Maintainer: Nathanne Isip <nathanneisip@gmail.com>" >> dist/uartix_0.1.1_amd64/DEBIAN/control
echo "Description: Strange dynamic programming language that performs mathematical computations on a connected Raspberry Pi Pico through UART connectivity." >> dist/uartix_0.1.1_amd64/DEBIAN/control

cd dist
dpkg-deb --build uartix_0.1.0-1_amd64
rm -rf uartix_0.1.0-1_amd64
dpkg-deb --build uartix_0.1.1_amd64
rm -rf uartix_0.1.1_amd64
cd ..

mkdir -p dist/uartix_0.1.0-1_win_x86_64/bin
cp out/artifacts/Uartix_jar/Uartix.jar dist/uartix_0.1.0-1_win_x86_64/bin
cp launcher/target/x86_64-pc-windows-gnu/release/uartix.exe dist/uartix_0.1.0-1_win_x86_64/bin
cp -r examples dist/uartix_0.1.0-1_win_x86_64/examples
cd dist/uartix_0.1.0-1_win_x86_64
zip -5 -r ../uartix_0.1.0-1_win_x86_64.zip *
mkdir -p dist/uartix_0.1.1_win_x86_64/bin
cp out/artifacts/Uartix_jar/Uartix.jar dist/uartix_0.1.1_win_x86_64/bin
cp launcher/target/x86_64-pc-windows-gnu/release/uartix.exe dist/uartix_0.1.1_win_x86_64/bin
cp -r examples dist/uartix_0.1.1_win_x86_64/examples
cd dist/uartix_0.1.1_win_x86_64
zip -5 -r ../uartix_0.1.1_win_x86_64.zip *

cd ../..
rm -rf dist/uartix_0.1.0-1_win_x86_64
rm -rf dist/uartix_0.1.1_win_x86_64

0 comments on commit 2cac702

Please sign in to comment.