Commit 48957583 authored by spriver's avatar spriver
Browse files

Update release process for uBlock

parent 44d85e75
......@@ -145,26 +145,32 @@ Reset the release branch's `config/base_branch`:
Update included files
AdBlock patterns
uBlock patterns and settings file
Patterns are stored in
The patterns+settings file is stored as a converted sqlite text dump in
1. Boot Tails
2. Start the tor Browser and open *Tools* → *Addons*
3. Select *Adblock Plus* in extensions
4. Open *Preferences* → *Filter preferences…*
5. For each filters, click *Actions* → *Update filters*
6. Close the Tor Browser
7. Copy the `.tor-browser/profile.default/adblockplus/patterns.ini` from
this Tor Browser instance to the
directory in the Tails Git checkout.
2. Start the Tor Browser and open the uBlock dashboard by clicking on the uBlock icon.
3. Select the tab *3rd-party filters*
4. Click on the button *Update now* to update all used patterns
5. Close the Tor Browser
7. Copy the `.tor-browser/profile.default/extension-data/ublock0.sqlite` from
this Tor Browser instance into the git repo and run
`echo '.dump' | sqlite3 ublock0.sqlite | \
grep -v "cached_asset_content://cache://compiled-" | \
awk '!/^INSERT/; /^INSERT/ {print $0 | "sort -n"}' | \
sed 's_\\n_\\n\n_g' | \
sed "/^INSERT INTO \"settings\" VALUES('\(remoteBlacklists\|cached_asset_entries\)'/"'s_,_,\\n\n_g' > \
in the Tails Git checkout.
8. Commit:
git commit -m 'Update AdBlock Plus patterns.' \
git commit -m 'Update uBlock patterns+settings file.' \
9. Remove the original ublock0.sqlite from the git root.
Upgrade bundled binary Debian packages
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment