Skip to content

Instantly share code, notes, and snippets.

@MrStonedOne
Created July 31, 2018 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrStonedOne/0b4f240469e83168146693499397ae95 to your computer and use it in GitHub Desktop.
Save MrStonedOne/0b4f240469e83168146693499397ae95 to your computer and use it in GitHub Desktop.
#!/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