Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Build Process

Myk Melez edited this page May 1, 2013 · 21 revisions

On development machine:

git checkout -b build-4.0pre1 master
# update version in addon/package.json
git commit -m"update version for 4.0pre1 build" addon/package.json
git push --set-upstream origin build-4.0pre1

On each build machine:

# If reusing an existing clone:
make clean
git fetch
git checkout build-4.0pre1
# If cloning anew:
git clone git://github.com/mykmelez/r2d2b2g.git
cd r2d2b2g
git checkout build-4.0pre1
git submodule init
# The rest is the same for both new and existing clones:
git submodule update
LOCALES_FILE=${PWD}/build/languages.json make locales
LOCALES_FILE=${PWD}/build/languages.json make
# On Linux 32, also do:
#B2G_PLATFORM=linux64 LOCALES_FILE=${PWD}/build/languages.json make
make package

mv addon/r2d2b2g.xpi addon/r2d2b2g-4.0pre1-mac.xpi
scp addon/r2d2b2g-4.0pre1-mac.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/

mv addon/r2d2b2g.xpi addon/r2d2b2g-4.0pre1-windows.xpi
scp addon/r2d2b2g-4.0pre1-windows.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/

mv addon/r2d2b2g.xpi addon/r2d2b2g-4.0pre1-linux.xpi
scp addon/r2d2b2g-4.0pre1-linux.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/

On stage server:

cd /pub/mozilla.org/labs/r2d2b2g/
rm r2d2b2g-windows.xpi && ln -s r2d2b2g-4.0pre1-windows.xpi r2d2b2g-windows.xpi ; rm r2d2b2g-mac.xpi && ln -s r2d2b2g-4.0pre1-mac.xpi r2d2b2g-mac.xpi ; rm r2d2b2g-linux.xpi && ln -s r2d2b2g-4.0pre1-linux.xpi r2d2b2g-linux.xpi

On development machine:

git tag 4.0pre1
# update version in addon/package.json
git commit -m"update version for 4.0pre2dev development" addon/package.json
git push
git checkout master
git merge build-4.0pre1
git push --tags origin master
git push --tags upstream master
git branch -d build-4.0pre1
git push origin :build-4.0pre1

On each build machine:

cd ..
rm -rf r2d2b2g
Clone this wiki locally