update nightly builder and add app engine config and docs
This commit is contained in:
@ -1,15 +1,30 @@
|
||||
#!/bin/sh
|
||||
#!/bin/zsh
|
||||
|
||||
GIT="git://github.com/breunigs/ingress-intel-total-conversion.git"
|
||||
URL="https://nodeload.github.com/breunigs/ingress-intel-total-conversion/tar.gz/gh-pages"
|
||||
PTH="ingress-intel-total-conversion-gh-pages"
|
||||
|
||||
set -e
|
||||
|
||||
cd /tmp
|
||||
rm -rf ingress-intel-total-conversion
|
||||
git clone --depth=1 git://github.com/breunigs/ingress-intel-total-conversion.git
|
||||
cd ingress-intel-total-conversion
|
||||
rm -rf $PTH
|
||||
wget -q -O - $URL | (cd /tmp && tar xfz -)
|
||||
cd $PTH
|
||||
./build.py
|
||||
|
||||
date=$(date +"%Y-%m-%d")
|
||||
commit=$(git rev-parse HEAD | head -c 10)
|
||||
|
||||
commit=$(git ls-remote --heads $GIT | head -c 10)
|
||||
# https://github.com/andreafabrizi/Dropbox-Uploader
|
||||
dropbox-up upload iitc-debug.user.js iitc-nightly/iitc-nightly-$date-$commit.user.js
|
||||
/opt/dropbox-up upload iitc-debug.user.js iitc-nightly/iitc-nightly-$date-$commit.user.js
|
||||
/opt/dropbox-up upload iitc-debug.user.js iitc-nightly/iitc-nightly-latest.user.js
|
||||
|
||||
cp iitc-debug.user.js /home/pi/iitc-appengine/war/iitc-nightly/iitc-nightly-$date-$commit.user.js
|
||||
cp iitc-debug.user.js /home/pi/iitc-appengine/war/iitc-nightly/iitc-nightly-latest.user.js
|
||||
mv screenshots/* /home/pi/iitc-appengine/war/screenshots
|
||||
mv images/* /home/pi/iitc-appengine/war/images
|
||||
mv dist/images/* /home/pi/iitc-appengine/war/dist/images/
|
||||
rmdir dist/images
|
||||
mv dist/* /home/pi/iitc-appengine/war/dist/
|
||||
cd /home/pi/iitc-appengine/
|
||||
rm **/*@* # not supported by app engine
|
||||
./appenginesmall/bin/appcfg.sh update war
|
||||
|
Reference in New Issue
Block a user