iw4x-rawfiles/scripts/release.sh

36 lines
469 B
Bash
Raw Permalink Normal View History

2022-01-03 09:18:32 -08:00
#!/bin/bash
sudo apt update >> /dev/null && sudo apt install zip -y >> /dev/null # Ensure zip is up to date.
2022-07-21 12:56:54 -07:00
cd iw4x/
# iw4x_00
2022-01-03 09:18:32 -08:00
cd iw4x_00/
zip -r iw4x_00.iwd *
2022-01-10 12:37:47 -08:00
mv iw4x_00.iwd ../
cd ..
rm -rf iw4x_00/
# iw4x_01
2022-01-03 09:18:32 -08:00
cd iw4x_01/
zip -r iw4x_01.iwd *
2022-01-10 12:37:47 -08:00
mv iw4x_01.iwd ../
2022-01-03 09:18:32 -08:00
cd ..
2022-01-10 12:37:47 -08:00
rm -rf iw4x_01/
# iw4x_02
cd iw4x_02/
zip -r iw4x_02.iwd *
mv iw4x_02.iwd ../
cd ..
rm -rf iw4x_02/
# Cleanup
2022-01-03 09:18:32 -08:00
cd ..
rm LICENSE
rm README.md
rm -rf .github
2022-07-21 12:59:12 -07:00
rm -rf scripts
2022-01-03 09:18:32 -08:00
zip -r release.zip *