Skip to content

Instantly share code, notes, and snippets.

@flamingspaz
Created November 14, 2015 19:26
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 flamingspaz/19b128c089e7d02ac370 to your computer and use it in GitHub Desktop.
Save flamingspaz/19b128c089e7d02ac370 to your computer and use it in GitHub Desktop.
echo "==============================================="
echo "PACKAGING ZIP"
echo "==============================================="
cd /home/yousef/Projects/b2g/b2g-n4/mako-template
rm -rf ../mako
cp -R /home/yousef/Projects/b2g/b2g-n4/mako-template /home/yousef/Projects/b2g/b2g-n4/mako
cp /home/yousef/Projects/b2g/b2g-n4/B2G/out/target/product/mako/boot.img /home/yousef/Projects/b2g/b2g-n4/mako/boot.img
cp -R /home/yousef/Projects/b2g/b2g-n4/B2G/out/target/product/mako/system /home/yousef/Projects/b2g/b2g-n4/mako
cp -R /home/yousef/Projects/b2g/b2g-n4/B2G/out/target/product/mako/data/local/webapps/ /home/yousef/Projects/b2g/b2g-n4/mako/system/b2g/webapps # there's a fancy new flag to do this at build time
cd /home/yousef/Projects/b2g/b2g-n4/mako
name="fxos-mako-$(date +"%y-%m-%d").zip"
zip -r "/home/yousef/Projects/b2g/b2g-n4/$name" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment