Releases/Fennec 4.0.1/BuildNotes: Difference between revisions
< Releases
Jump to navigation
Jump to search
Line 109: | Line 109: | ||
====Sign Android==== | ====Sign Android==== | ||
<pre> | ran this script in ~ on cm-keymaster | ||
export VERSION=4.0.1 | <pre>export VERSION=4.0.1 | ||
export PRODUCT=fennec | export PRODUCT=fennec | ||
export BUILD=build1 | export BUILD=build1 | ||
Line 121: | Line 121: | ||
# we sign both en-US and multi | # we sign both en-US and multi | ||
# need sep dirs since they are both named gecko-unsigned-unaligned.apk | # need sep dirs since they are both named gecko-unsigned-unaligned.apk | ||
echo "Creating directories" | |||
mkdir -p $BUILD/en-US | mkdir -p $BUILD/en-US | ||
mkdir $BUILD/multi | mkdir $BUILD/multi | ||
echo "Getting the unsigned apks" | |||
# get en-US apk | # get en-US apk | ||
cd $BUILD/en-US/ | cd $BUILD/en-US/ | ||
wget http://stage.mozilla.org/pub/mozilla.org/mobile/candidates/$VERSION-candidates/$BUILD/unsigned/android-r7/en-US/gecko-unsigned-unaligned.apk | wget http://stage.mozilla.org/pub/mozilla.org/mobile/candidates/$VERSION-candidates/$BUILD/unsigned/android-r7/en-US/gecko-unsigned-unaligned.apk | ||
# get multi apk | # get multi apk | ||
cd ../multi/ | cd ../multi/ | ||
wget http://stage.mozilla.org/pub/mozilla.org/mobile/candidates/$VERSION-candidates/$BUILD/unsigned/android-r7/gecko-unsigned-unaligned.apk | wget http://stage.mozilla.org/pub/mozilla.org/mobile/candidates/$VERSION-candidates/$BUILD/unsigned/android-r7/multi/gecko-unsigned-unaligned.apk | ||
# put the signing script in the ~/signing-work/fennec-4.0rc1/ dir | # put the signing script in the ~/signing-work/fennec-4.0rc1/ dir | ||
echo "Copying signing script from hg-tools" | |||
cd ~/signing-work/$PRODUCT-$VERSION/ | cd ~/signing-work/$PRODUCT-$VERSION/ | ||
cp ~/hg-tools/release/signing/* . | cp ~/hg-tools/release/signing/* . | ||
# copy the en-US apk up to pwd for signing -- there is a bug on this | # copy the en-US apk up to pwd for signing -- there is a bug on this | ||
# (608432), it's because sign_android.sh relies on mozpass.py and that has to | # (608432), it's because sign_android.sh relies on mozpass.py and that has to | ||
# be in the same dir as .apk to work | # be in the same dir as .apk to work | ||
echo "Prepare to sign en-US" | |||
cp $BUILD/en-US/gecko-unsigned-unaligned.apk . | cp $BUILD/en-US/gecko-unsigned-unaligned.apk . | ||
./sign_android.sh | ./sign_android.sh | ||
# if any problems with signing, remove gecko-unaligned.apk and start again | # if any problems with signing, remove gecko-unaligned.apk and start again | ||
# signing successful? copy back to the en-US | # signing successful? copy back to the en-US | ||
echo "en-US signed, cleaning up" | |||
mv gecko-unaligned.apk $BUILD/en-US/ | mv gecko-unaligned.apk $BUILD/en-US/ | ||
# rename the fennec.apk, then move | # rename the fennec.apk, then move | ||
mv $PRODUCT.apk $PRODUCT-$VERSION.en-US.eabi-arm.apk | mv $PRODUCT.apk $PRODUCT-$VERSION.en-US.eabi-arm.apk | ||
mv $PRODUCT-$VERSION.en-US.eabi-arm.apk $BUILD/en-US/ | mv $PRODUCT-$VERSION.en-US.eabi-arm.apk $BUILD/en-US/ | ||
# clean up any left overs | # clean up any left overs | ||
rm *.apk | rm *.apk | ||
# repeat for multi | # repeat for multi | ||
echo "Prepare to sign multi" | |||
cp $BUILD/multi/gecko-unsigned-unaligned.apk . | cp $BUILD/multi/gecko-unsigned-unaligned.apk . | ||
./sign_android.sh | ./sign_android.sh | ||
echo "multi signed, cleaning up" | |||
mv gecko-unaligned.apk $BUILD/multi/ | mv gecko-unaligned.apk $BUILD/multi/ | ||
mv $PRODUCT.apk $PRODUCT-$VERSION.multi.eabi-arm.apk | mv $PRODUCT.apk $PRODUCT-$VERSION.multi.eabi-arm.apk | ||
mv $PRODUCT-$VERSION.multi.eabi-arm.apk $BUILD/multi/ | mv $PRODUCT-$VERSION.multi.eabi-arm.apk $BUILD/multi/ | ||
rm *.apk | rm *.apk | ||
# upload to stage | # upload to stage | ||
cd $BUILD/ | cd $BUILD/ | ||
scp -i ~/.ssh/ffxbld_dsa -r * ffxbld@stage.mozilla.org:/home/ftp/pub/mobile/candidates/$ | echo "Uploading signed builds" | ||
scp -i ~/.ssh/ffxbld_dsa -r * ffxbld@stage.mozilla.org:/home/ftp/pub/mobile/candidates/$VERSION-candidates/$BUILD/android-r7 | |||
</pre> | </pre> | ||
Revision as of 01:39, 16 April 2011
Build Engineers
lsblakk bug 649519
Bugs encountered
Signed-off Revision(s)
Build # | mozilla-2.1 | mobile-2.0 |
build 1 | # | # |
build 2 | # | # |
Tags
Build # | Tag | Moz Changeset | Mobile Changeset |
build 1 | GECKO21_#_RELBRANCH | # | # |
FENNEC_4_0.1_BUILD1, FENNEC_4_0.1_RELEASE | # | # |
Build data
Build # | Type | Build ID | Build machine |
build 1 | Android | ||
Maemo5-GTK | |||
Linux | |||
Mac | |||
Windows |
Notes
Build 1
Setup
l10n changesets
- landed l10n-changesets hit "ship it"
Start
- landed configs & deb_configs
- merged to production branch on buildbot-configs
- clobbered pm02:8010
- updated configs-default + buildbotcustom on pm02, reconfiged
- took bm-xserve07 (via slavealloc) for mac builds
- sendchange:
buildbot sendchange --user lsblakk --master localhost:9010 --branch=releases/mobile-2.0 "Fennec 4.0.1 build1" go
Tag
moz2-linux-slave44
no problem
Source
mv-moz2-linux-ix-slave18
first run failed, had to clobber mobile-source dir and rebuild.
Build/Repack
mac desktop: bm-xserve07
repack
Sign Android
ran this script in ~ on cm-keymaster
export VERSION=4.0.1 export PRODUCT=fennec export BUILD=build1 # on keymaster in ~/signing-work cd ~/signing-work mkdir $PRODUCT-$VERSION cd $PRODUCT-$VERSION/ # we sign both en-US and multi # need sep dirs since they are both named gecko-unsigned-unaligned.apk echo "Creating directories" mkdir -p $BUILD/en-US mkdir $BUILD/multi echo "Getting the unsigned apks" # get en-US apk cd $BUILD/en-US/ wget http://stage.mozilla.org/pub/mozilla.org/mobile/candidates/$VERSION-candidates/$BUILD/unsigned/android-r7/en-US/gecko-unsigned-unaligned.apk # get multi apk cd ../multi/ wget http://stage.mozilla.org/pub/mozilla.org/mobile/candidates/$VERSION-candidates/$BUILD/unsigned/android-r7/multi/gecko-unsigned-unaligned.apk # put the signing script in the ~/signing-work/fennec-4.0rc1/ dir echo "Copying signing script from hg-tools" cd ~/signing-work/$PRODUCT-$VERSION/ cp ~/hg-tools/release/signing/* . # copy the en-US apk up to pwd for signing -- there is a bug on this # (608432), it's because sign_android.sh relies on mozpass.py and that has to # be in the same dir as .apk to work echo "Prepare to sign en-US" cp $BUILD/en-US/gecko-unsigned-unaligned.apk . ./sign_android.sh # if any problems with signing, remove gecko-unaligned.apk and start again # signing successful? copy back to the en-US echo "en-US signed, cleaning up" mv gecko-unaligned.apk $BUILD/en-US/ # rename the fennec.apk, then move mv $PRODUCT.apk $PRODUCT-$VERSION.en-US.eabi-arm.apk mv $PRODUCT-$VERSION.en-US.eabi-arm.apk $BUILD/en-US/ # clean up any left overs rm *.apk # repeat for multi echo "Prepare to sign multi" cp $BUILD/multi/gecko-unsigned-unaligned.apk . ./sign_android.sh echo "multi signed, cleaning up" mv gecko-unaligned.apk $BUILD/multi/ mv $PRODUCT.apk $PRODUCT-$VERSION.multi.eabi-arm.apk mv $PRODUCT-$VERSION.multi.eabi-arm.apk $BUILD/multi/ rm *.apk # upload to stage cd $BUILD/ echo "Uploading signed builds" scp -i ~/.ssh/ffxbld_dsa -r * ffxbld@stage.mozilla.org:/home/ftp/pub/mobile/candidates/$VERSION-candidates/$BUILD/android-r7