This repository was archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
Build Process, release 4.0 Branch
Myk Melez edited this page Jun 30, 2014
·
2 revisions
Edit this file, replacing references to NEW_DEV_VERSION, OLD_DEV_VERSION, and BUILD_VERSION (in that order) with the appropriate versions for the build in question.
On development machine:
export OLD_DEV_VERSION=4.0.2pre1dev BUILD_VERSION=4.0.2 NEW_DEV_VERSION=4.0.3pre1dev
git checkout -b build-${BUILD_VERSION} release-4.0
sed -i '' s/${OLD_DEV_VERSION}/${BUILD_VERSION}/g addon/package.json
git commit -m"update version for ${BUILD_VERSION} build" addon/package.json
git push --set-upstream origin build-${BUILD_VERSION}
On each build machine, if reusing an existing clone:
export BUILD_VERSION=4.0.2
git fetch
git checkout build-${BUILD_VERSION}
If cloning anew:
git clone git://github.com/mykmelez/r2d2b2g.git
cd r2d2b2g
git checkout build-${BUILD_VERSION}
git submodule init
Then:
git submodule update
LOCALES_FILE=${PWD}/build/languages.json make locales
LOCALES_FILE=${PWD}/build/languages.json make
make package
On Linux 32, build for Linux 64 too:
B2G_PLATFORM=linux64 LOCALES_FILE=${PWD}/build/languages.json make
make package
Push the builds to the server:
mv addon/r2d2b2g.xpi addon/r2d2b2g-${BUILD_VERSION}-mac.xpi
scp addon/r2d2b2g-${BUILD_VERSION}-mac.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/
mv addon/r2d2b2g.xpi addon/r2d2b2g-${BUILD_VERSION}-windows.xpi
scp addon/r2d2b2g-${BUILD_VERSION}-windows.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/
mv addon/r2d2b2g.xpi addon/r2d2b2g-${BUILD_VERSION}-linux.xpi
scp addon/r2d2b2g-${BUILD_VERSION}-linux.xpi stage.mozilla.org:/pub/mozilla.org/labs/r2d2b2g/
Test the builds.
On development machine:
git tag ${BUILD_VERSION}
sed -i '' s/${BUILD_VERSION}/${NEW_DEV_VERSION}/g addon/package.json
git commit -m"update version for ${NEW_DEV_VERSION} development" addon/package.json
git push
git checkout release-4.0
git merge build-${BUILD_VERSION}
git push --tags origin release-4.0
git push --tags upstream release-4.0
git branch -d build-${BUILD_VERSION}
git push origin :build-${BUILD_VERSION}
On each build machine, if you reused an existing clone:
git checkout release-4.0
git pull
git branch -d build-${BUILD_VERSION}
git remote prune origin
make clean
make -C gaia multilocale-clean
git status
If you cloned anew:
cd ..
rm -rf r2d2b2g