better build/deployment
This commit is contained in:
parent
7e045c0a8d
commit
06960b6f9c
|
@ -6,3 +6,5 @@
|
|||
/sounds/*.wav
|
||||
/sounds.zip
|
||||
/lull.zip
|
||||
/dist/
|
||||
/package/
|
||||
|
|
19
build.sh
19
build.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue