39 lines
1.2 KiB
Bash
Raw Normal View History

2024-04-15 06:10:54 -04:00
#!/bin/bash
# Wow it's almost like someone who had no idea what they're doing made this.
2024-04-16 06:01:23 -04:00
echo "Deleting old release build..."
rm forgotten_lands_release.zip
2024-04-16 06:03:44 -04:00
rm forgotten_lands_release.tar.gz
2024-04-16 06:01:23 -04:00
echo "Done."
2024-04-15 06:10:54 -04:00
echo "Creating release folder..."
rm -rf forgotten_lands_release/
mkdir forgotten_lands_release/
echo "Done."
# Now run the rest of my garbage.
make build_linux
# Now just shove everything important to run the game into that folder blindly.
echo "Blindly shoveling all built game components into the output directory!"
mkdir forgotten_lands_release/mods/
mkdir forgotten_lands_release/menu/
cp --verbose -r mods/* forgotten_lands_release/mods/
cp --verbose -r menu/* forgotten_lands_release/menu/
cp readme.MD forgotten_lands_release/readme.MD
cp LICENSE forgotten_lands_release/LICENSE
cp game.conf forgotten_lands_release/game.conf
echo "Finished blindly shoveling all build game components into the output directory!"
2024-04-16 06:03:44 -04:00
echo "Creating a zip of the game!"
2024-04-15 06:10:54 -04:00
zip -r forgotten_lands_release.zip forgotten_lands_release/
echo "Build created."
2024-04-16 06:03:44 -04:00
echo "Creating a tar.gz of the game!"
tar vczf forgotten_lands_release.tar.gz forgotten_lands_release/
2024-04-16 06:03:44 -04:00
echo "Build created."
2024-04-15 06:10:54 -04:00
echo "Cleaning release folder."
rm -rf forgotten_lands_release/
echo "Done."