Repository navigation
What's Changed
-
Rewriting a profile
Preferencesfile or a Linux policy file on Linux and macOS now keeps the file's owner and permissions (PowerShell 7.3 or newer). Previously the replaced file got the default permissions, so a0600Preferencesfile became world-readable (0644), and a file rewritten withsudoended up owned by root. -
On Linux,
/etc/brave/policies/managed/BraveDebloater.jsonand thebrave/policies/managedfolders are now made readable for every user after an apply or undo run. With a restrictive root umask (027or077) Brave could not read the new file, so the applied policies silently had no effect. A-PolicyPathfile keeps the permissions it has. -
A string policy value that differs only in case, for example
DnsOverHttpsMode=OFF, is no longer reported as "Already set" in previews, reports, and-Doctor. Brave reads these values case-sensitively. -
-ReportPathon a Linux desktop now opens reports whose path contains spaces. The path was split into several arguments forxdg-open. -
The Linux default profile folder for
-IncludeProfilePreferencesand-DoctorfollowsXDG_CONFIG_HOMEwhen it is set to an absolute path, as Brave does. -
A
-NoBackuppreview report no longer saysBackup: Written on -Applyor promises an undo command; it now says that the matching-Applyrun writes no backup. -
The "Could not read existing policies" warning no longer ends with a doubled period.
-
scripts/Update-PolicyTemplateVersion.ps1no longer rewrites the "What Changed" sentence indocs/debloatable-validation.md. On the version-only156.1.100.5update it changed "from155.1.99.2to156.1.99.33" into "to156.1.100.5", which credited the Autofill deprecations to the wrong template. It now updates only the template evidence: the version and theVERSIONentry date from the zip. -
The weekly policy template check no longer fails when the repository does not let GitHub Actions open pull requests. It still pushes
automation/policy-templates, then opens or updates one issue with the comparison and a link to open the pull request. Later runs close that issue once a pull request from the branch is open ormainrecords the latest templates. The check always compares and rewritesmain, also when started by hand from another branch. Every run now shows the comparison and the manifest validation output on its run page. The October 12 and 19 runs failed at that step, so the156.1.100.5update found on October 19 never reached a pull request.
Validation
Run against this tag before publishing, on Windows, Ubuntu, and macOS:
./scripts/Test-PolicyManifest.ps1./scripts/Test-Behavior.ps1Invoke-Pester -Path ./tests./Invoke-BraveDebloat.ps1 -Preset Extreme -LockShields- Windows PowerShell 5.1 compatibility checks
Install
One line, any platform with PowerShell (downloads this release, checks SHA256SUMS.txt, extracts, prints the preview command):
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/osfv/BraveDebloater/main/install.ps1))) -Version 0.9.2Or download BraveDebloater-v0.9.2.zip below. BraveDebloater-v0.9.2-windows.zip is the same tree flattened with the BraveDebloat.exe launcher; winget uses it.
Verify the download
Compare the archive hash with SHA256SUMS.txt:
Get-FileHash .\BraveDebloater-v0.9.2.zip -Algorithm SHA256Confirm that this repository's release workflow built the archive from this tag (needs the GitHub CLI):
gh attestation verify .\BraveDebloater-v0.9.2.zip --repo osfv/BraveDebloater --source-ref refs/tags/v0.9.2 --signer-workflow osfv/BraveDebloater/.github/workflows/release.ymlFull Changelog: v0.9.1...v0.9.2