Automate git version to android apk and chrome extension packages

This commit is contained in:
Yemel Jardi 2014-05-23 10:11:57 -07:00
commit 39e3adc6b3
4 changed files with 8 additions and 7 deletions

View file

@ -12,6 +12,7 @@ fi
# Configs
APPDIR="./webapp"
VERSION=`git describe --tags --abbrev=0 | cut -c 2-`
CHROMEDIR="./chrome-extension"
FIREFOXDIR="./firefox-addon"
@ -71,7 +72,8 @@ checkOK
# Copy all chrome-extension files
echo -e "${OpenColor}${Green}* Copying all chrome-extension files...${CloseColor}"
cp -af {css,font,img,js,lib,sound,config.js,version.js,index.html,popup.html,manifest.json} $CHROMEDIR
sed "s/APP_VERSION/$VERSION/g" manifest.json > $CHROMEDIR/manifest.json
cp -af {css,font,img,js,lib,sound,config.js,version.js,index.html,popup.html} $CHROMEDIR
checkOK
# Copy all firefox-addon files