better build/deployment

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

2
.gitignore vendored
View File

@ -6,3 +6,5 @@
/sounds/*.wav
/sounds.zip
/lull.zip
/dist/
/package/

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

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash
#butler push lull-linux.tar.gz ruin/lull:linux-download
butler push lull-linux.zip ruin/lull:linux
butler push sounds.zip ruin/lull:sounds
butler push dist/linux ruin/lull:linux
butler push dist/sounds ruin/lull:sounds