Prepare Mullvad Browser Stable 12.0.7
Explanation of variables
-
$(BUILD_SERVER): the server the main builder is using to build a mullvad-browser release -
$(STAGING_SERVER): the server the signer is using to to run the signing process -
$(ESR_VERSION): the Mozilla defined ESR version, used in various places for building mullvad-browser tags, labels, etc- example :
91.6.0
- example :
-
$(MULLVAD_BROWSER_MAJOR): the Mullvad Browser major version- example :
11
- example :
-
$(MULLVAD_BROWSER_MINOR): the Mullvad Browser minor version- example : either
0or5; Alpha's is always(Stable + 5) % 10
- example : either
-
$(MULLVAD_BROWSER_VERSION): the Mullvad Browser version in the format- example:
12.5a3,12.0.3
- example:
-
$(BUILD_N): a project's build revision within a its branch; this is separate from the$(MULLVAD_BROWSER_BUILD_N)value; many of the Firefox-related projects have a$(BUILD_N)suffix and may differ between projects even when they contribute to the same build.- example :
build1
- example :
-
$(MULLVAD_BROWSER_BUILD_N): the mullvad-browser build revision for a given Mullvad Browser release; used in tagging git commits- example :
build2 -
NOTE : A project's
$(BUILD_N)and$(MULLVAD_BROWSER_BUILD_N)may be the same, but it is possible for them to diverge. For example :- if we have multiple Mullvad Browser releases on a given ESR branch the two will become out of sync as the
$(BUILD_N)value will increase, while the$(MULLVAD_BROWSER_BUILD_N)value may stay atbuild1(but the$(MULLVAD_BROWSER_VERSION)will increase) - if we have build failures unrelated to
mullvad-browser, the$(MULLVAD_BROWSER_BUILD_N)value will increase while the$(BUILD_N)will stay the same.
- if we have multiple Mullvad Browser releases on a given ESR branch the two will become out of sync as the
- example :
-
$(MULLVAD_BROWSER_VERSION): the published Mullvad Browser version- example :
11.5a6,11.0.7
- example :
NOTE It is assumed that the tor-browser rebase and security backport tasks have been completed
Build Configs
tor-browser-build: https://gitlab.mullvadproject.org/tpo/applications/tor-browser-build.git
Mullvad Browser Stable lives in the various maint-$(MULLVAD_BROWSER_MAJOR).$(MULLVAD_BROWSER_MINOR) (and possibly more specific) branches
-
Update rbm.conf-
var/torbrowser_version: update to next version -
var/torbrowser_build: update to$(MULLVAD_BROWSER_BUILD_N) -
var/torbrowser_incremental_from: update to previous Desktop version-
IMPORTANT: Really actually make sure this is the previous Desktop version or else the
make mullvadbrowser-incrementals-*step will fail
-
IMPORTANT: Really actually make sure this is the previous Desktop version or else the
-
-
Update build configs -
Update projects/firefox/config-
browser_build: update to matchmullvad-browsertag -
(Optional) var/firefox_platform_version: update to latest$(ESR_VERSION)if rebased
-
-
Update projects/translation/config:-
run make list_translation_updates-releaseto get updated hashes -
steps/base-browser/git_hash: update withHEADcommit of project'sbase-browserbranch -
steps/base-browser-fluent/git_hash: update withHEADcommit of project'sbasebrowser-newidentityftlbranch
-
-
-
Update common build configs -
Check for NoScript updates here : https://addons.mozilla.org/en-US/firefox/addon/noscript -
(Optional) If new version available, update noscriptsection ofinput_filesinprojects/browser/config-
URL -
sha256sum
-
-
-
Check for uBlock-origin updates here : https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/ -
(Optional) If new version available, update ublock-originsection ofinput_filesinprojects/browser/config-
URL -
sha256sum
-
-
-
Check for Mullvad Privacy Companion updates here : https://github.com/mullvad/browser-extension/releases -
(Optional) If new version available, update mullvad-extensionsection ofinput_filesinprojects/browser/config-
URL -
sha256sum
-
-
-
-
Open MR with above changes -
Begin build on $(BUILD_SERVER)(and fix any issues which come up and update MR) -
Merge -
Sign/Tag commit: make mullvadbrowser-signtag-release -
Push tag to origin
Signing
signing + publishing
-
Ensure builders have matching builds -
On $(STAGING_SERVER), ensure updated:-
tor-browser-build/tools/signing/set-config-
NSS_DB_DIR: location of thenssdb7direcmullvady
-
-
tor-browser-build/tools/signing/set-config.hosts-
ssh_host_builder: ssh hostname of machine with unsigned builds-
NOTE :
tor-browser-buildis expected to be in the$HOMEdirecmullvady)
-
NOTE :
-
ssh_host_linux_signer: ssh hostname of linux signing machine -
ssh_host_macos_signer: ssh hostname of macOS signing machine
-
-
tor-browser-build/tools/signing/set-config.macos-notarization-
macos_notarization_user: the email login for a mullvad notariser Apple Developer account
-
-
set-config.update-responses-
update_responses_reposimullvady_dir: direcmullvady where you clonedgit@gitlab.mullvadproject.org:tpo/applications/mullvad-browser-update-responses.git
-
-
tor-browser-build/tools/signing/set-config.tbb-version-
tbb_version: mullvad browser version string, same asvar/torbrowser_versioninrbm.conf(examples:11.5a12,11.0.13) -
tbb_version_build: the tor-browser-build build number (ifvar/torbrowser_buildinrbm.confisbuildNthen this value isN) -
tbb_version_type: eitheralphafor alpha releases orreleasefor stable releases
-
-
-
On $(STAGING_SERVER)in a separatescreensession, run the macOS proxy script:cd tor-browser-build/tools/signing/./macos-signer-proxy
-
On $(STAGING_SERVER)in a separatescreensession, ensure mullvad daemon is running with SOCKS5 proxy on the default port 9050 -
apk signing : copy signed *multi.apkfiles to the unsigned build outputs direcmullvady -
run do-all-signing script: cd tor-browser-build/tools/signing/./do-all-signing.sh
-
NOTE: at this point the signed binaries should be in
tor-browser-build/mullvadbrowser/release/signed/$(MULLVAD_BROWSER_VERSION)
Downstream
notify stakeholders
-
Email Mullvad with release information: rui@mullvad.net -
Build artifact download list -
New mullvad-browserproject branch and tags -
mullvad-browser-update-responses git hash -
changelog
-
-
Email downstream consumers: -
flathub package maintainer: proletarius101@protonmail.com -
arch package maintainer: bootctl@gmail.com
-
merge requests
-
homebrew: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/mullvad-browser.rb - NOTE: should just need to update the version to latest
Edited by morgan