Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

3 changed files:

Changes:

  • .gitignore
    ... ... @@ -14,3 +14,7 @@
    14 14
     /release
    
    15 15
     /alpha
    
    16 16
     /nightly
    
    17
    +
    
    18
    +# This file is used to test the updater, and whoever is interested in doing so,
    
    19
    +# should provide their file.
    
    20
    +/projects/firefox/marsigner.der

  • projects/firefox/build
    ... ... @@ -92,7 +92,10 @@ fi
    92 92
       popd
    
    93 93
     [% END %]
    
    94 94
     
    
    95
    -[% IF c("var/nightly") && ! c("var/mullvad-browser") -%]
    
    95
    +[% IF c("var/override_updater_url") -%]
    
    96
    +  sed -i 's|^URL=https://aus1\.torproject\.org/.*|URL=[% c("var/override_updater_url") %]|' build/application.ini.in
    
    97
    +  cp $rootdir/marsigner.der toolkit/mozapps/update/updater/nightly_aurora_level3_secondary.der
    
    98
    +[% ELSIF c("var/nightly") && ! c("var/mullvad-browser") -%]
    
    96 99
       # Set update url for nightly (#33402 / #40033)
    
    97 100
       sed -i 's|^URL=https://aus1\.torproject\.org/.*|URL=https://nightlies.tbb.torproject.org/nightly-updates/updates/nightly-[% c("var/nightly_updates_publish_dir") %]/%CHANNEL%/%BUILD_TARGET%/%VERSION%/ALL|' build/application.ini.in
    
    98 101
     [% END -%]
    

  • projects/firefox/config
    ... ... @@ -30,6 +30,12 @@ var:
    30 30
         - pkg-config
    
    31 31
       has_l10n: '[% !c("var/testbuild") && c("var/locales").size %]'
    
    32 32
     
    
    33
    +  # Uncomment this if you want to test the updater. You will need to provide a
    
    34
    +  # marsigner.der in this directory, too. It will be used as a replacement for
    
    35
    +  # the nightly builds keys only. So, using this option for alphas and releases
    
    36
    +  # will not work (the browser will fail with a key/signature mismatch).
    
    37
    +  # override_updater_url: 'https://tb-build-05.torproject.org/~you/update_3/%CHANNEL%/%BUILD_TARGET%/%VERSION%/ALL'
    
    38
    +
    
    33 39
       rezip: |
    
    34 40
         rezip_tmpdir=$(mktemp -d)
    
    35 41
         mkdir -p "$rezip_tmpdir/z"
    
    ... ... @@ -199,6 +205,8 @@ input_files:
    199 205
         name: translation-tor-browser
    
    200 206
         pkg_type: tor-browser
    
    201 207
         enable: '[% c("var/tor-browser") && c("var/has_l10n") %]'
    
    208
    +  - filename: marsigner.der
    
    209
    +    enable: '[% c("var/override_updater_url") %]'
    
    202 210
       - filename: namecoin-torbutton.patch
    
    203 211
         enable: '[% c("var/namecoin") %]'
    
    204 212
         # TorButton patch authored by Arthur Edelstein, from https://github.com/arthuredelstein/torbutton/ branch 2.1.10-namecoin