better build/deployment

This commit is contained in:
2020-10-27 17:27:16 +00:00
parent 7e045c0a8d
commit 06960b6f9c
3 changed files with 14 additions and 12 deletions

View File

@@ -1,15 +1,16 @@
#!/usr/bin/env bash
mkdir dist
cargo build --release
cp target/release/lull .
strip lull
# zip (itch desktop)
zip -r lull-linux.zip README.md LICENSE lull
# tar.gz (downloadable)
rm lull-linux.tar.gz
tar -czvf lull-linux.tar.gz README.md LICENSE lull
mkdir dist/linux
rm lull
cp target/release/lull dist/linux
cp README.md dist/linux
cp LICENSE dist/linux
strip dist/linux/lull
zip -r sounds.zip SOUNDS.md sounds/*.mp3
mkdir dist/sounds
cp sounds/*.mp3 SOUNDS.md dist/sounds