Created
July 31, 2018 16:47
-
-
Save MrStonedOne/0b4f240469e83168146693499397ae95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/git/tgstation | |
git fetch | |
git reset --hard origin/master | |
git clean -df | |
DreamMaker -o tgstation.dme > ~/web/public/objecttree.xml | |
zip -jD9 /home/static/web/public/byond/tgstation.zip tgstation.rsc | |
mkdir -p /home/static/web/public/nightlies/$(date '+%Y/%m') | |
cd .. | |
zip -9rX /home/static/web/public/nightlies/$(date '+%Y/%m')/$(date '+%Y-%m-%d')-tgstation-nightly.zip tgstation -x *.git/* | |
cp /home/static/web/public/nightlies/$(date '+%Y/%m')/$(date '+%Y-%m-%d')-tgstation-nightly.zip /home/static/web/public/nightlies/tgstation.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment