@@ -125,42 +125,16 @@ Testing the updater (and update process) is non-trivial. There are three separat
...
@@ -125,42 +125,16 @@ Testing the updater (and update process) is non-trivial. There are three separat
In addition, you must [create a new public key pair](https://gitlab.torproject.org/tpo/applications/tor-browser-spec/-/blob/main/processes/KeyGeneration#L41) for signing mar files. Copy the resulting public certificate `marsigner.der` for later use, too.
In addition, you must [create a new public key pair](https://gitlab.torproject.org/tpo/applications/tor-browser-spec/-/blob/main/processes/KeyGeneration#L41) for signing mar files. Copy the resulting public certificate `marsigner.der` for later use, too.
## Updater URL
## Updater URL and Signature Public Certificate
Testing the `nightly` channel is easiest. The URL can be modified in the [build](https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/blob/main/projects/firefox/build#L105) script. If you are testing `release` or `alpha` then a more complicated patch will be needed.
Testing the `nightly` channel is easiest.
The URL you are setting will contain the update responses, that are some XML files that the Firefox updater polls with a certain frequency, to check if any update is available.
You can change the URL in the [build configuration](https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/blob/main/projects/firefox/config#L38): you just need to set `override_updater_url`.
This URL will contain the update responses, that are some XML files that the Firefox updater polls with a certain frequency to check if any update is available.
## Signature Public Certificate
Setting a custom updater URL will also override the update certificate: copy yours to `project/firefox/marsigner.der`.
After creating the new testing key pair, add the new certificate into tor-browser by overwriting the appropriate secondary key. For `nightly`, you can achieve this with a patch
```patch
If you are testing `release` or `alpha` then a more complicated patch will be needed.
+ sed -i 's|^URL=https://aus1\.torproject\.org/.*|URL=https://people.torproject.org/~sysrqb/update_3/%CHANNEL%/%BUILD_TARGET%/%VERSION%/ALL|' build/application.ini.in