Skip to content
Snippets Groups Projects
Unverified Commit 8d5805ae authored by boklm's avatar boklm
Browse files

Bug 32475: Limit the number of mar file locales in nightly builds

We will start supporting updates in the nightly channel only for a
limited set of locales.
parent 89c948c3
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,17 @@ cp $rootdir/[% c('input_files_by_name/firefox') %]/mar-tools-*.zip "$OUTDIR"/
ELSE;
SET browserdir = tbdir _ '/Browser';
END;
SET build_mar = c("var/build_mar");
# On nightly we only build mar files for some locales
IF c("var/nightly") && c("var/build_mar");
build_mar = 0;
FOREACH mar_lang = c("var/mar_locales");
mar_lang = tmpl(mar_lang);
IF mar_lang == lang;
build_mar = 1;
END;
END;
END;
%]
cat > "$scripts_dir/create-tor-browser_[% lang %]" << SCRIPT_EOF
#!/bin/bash
......@@ -323,8 +334,11 @@ cp $rootdir/[% c('input_files_by_name/firefox') %]/mar-tools-*.zip "$OUTDIR"/
cd $distdir
# Create full MAR file and compressed package for this locale.
MAR=$MARTOOLS/mar MBSDIFF=$MARTOOLS/mbsdiff $MARTOOLS/make_full_update.sh -q $OUTDIR/[% mar_file %] "[% browserdir %]"
[% IF build_mar -%]
# Create full MAR file and compressed package for this locale.
MAR=$MARTOOLS/mar MBSDIFF=$MARTOOLS/mbsdiff $MARTOOLS/make_full_update.sh -q $OUTDIR/[% mar_file %] "[% browserdir %]"
[% END -%]
[% IF c("var/linux") %]
[% SET tardir = 'tor-browser_' _ lang;
c('tar', {
......
......@@ -148,6 +148,12 @@ targets:
nightly: 1
channel: nightly
torbrowser_version: '[% ENV.TORBROWSER_NIGHTLY_VERSION ? ENV.TORBROWSER_NIGHTLY_VERSION : c("var_p/nightly_torbrowser_version") %]'
# For nightly builds, we support updates for a limited set of locales
mar_locales:
- de
- es-ES
- fr
- ru
torbrowser-testbuild:
- testbuild
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment