Skip to content

Commit

Permalink
Brave changes
Browse files Browse the repository at this point in the history
- A different way to download Brave (in case we decided to remove choco)
- The installer runs as currentUserElevated instead of trustInstaller
- Replaced master_preferences with initial_preferences
- Disabled VPN, Wallet and Side Panel icons on the toolbar
- Disabled widgets on the new tab page
- Hide the Brave Rewards button
- Disabled WebTorrent
  • Loading branch information
melo936 committed Oct 27, 2023
1 parent 4ce9644 commit 79753cf
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 44 deletions.
15 changes: 9 additions & 6 deletions src/Configuration/features/revision/software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ actions:

- !writeStatus: {status: 'Installing Revision Tool'}
- !powerShell: {command: "& { Invoke-WebRequest ((Invoke-RestMethod -Uri 'https://api.github.com/repos/meetrevision/revision-tool/releases/latest' -Method Get | ConvertTo-Json | ConvertFrom-Json).assets | where-object { $_.name -eq 'RevisionTool-Setup.exe' }).browser_download_url -OutFile \"$env:TEMP\\RevisionTool-Setup.exe\" }" }
- !cmd: {command: 'call "%temp%\RevisionTool-Setup.exe" /VERYSILENT /TASKS="desktopicon" & del "%temp%\RevisionTool-Setup.exe"', weight: 150}
- !cmd: {command: 'call "%temp%\RevisionTool-Setup.exe" /VERYSILENT /TASKS="desktopicon"', weight: 150}

# Not an ideal place to put this - Disable Defender
- !writeStatus: {status: 'Disabling Windows Defender'}
Expand All @@ -22,19 +22,22 @@ actions:
weight: 150
option: "dotnet35"

- !writeStatus: {status: 'Downloading Brave', option: "browser-brave"}
- !powerShell: {command: '& { Invoke-WebRequest ((Invoke-RestMethod -Uri "https://api.github.com/repos/brave/brave-browser/releases/latest" -Method Get | ConvertTo-Json | ConvertFrom-Json).assets | where-object { $_.name -eq "BraveBrowserStandaloneSetup.exe" }).browser_download_url -OutFile "$env:TEMP\BraveBrowserStandaloneSetup.exe" }', weight: 150, option: "browser-brave"}

- !writeStatus: {status: 'Installing Brave', option: "browser-brave"}
- !cmd:
command: '"%ProgramData%\chocolatey\bin\choco.exe" install -y --force --allow-empty-checksums brave'
weight: 150
option: "browser-brave"
- !cmd: {command: 'call "%temp%\BraveBrowserStandaloneSetup.exe" /silent /install"', runas: currentUserElevated, weight: 50}

- !writeStatus: {status: 'Configuring Brave', option: "browser-brave"}
- !cmd: {command: 'copy /y "BraveSoftware\Brave-Browser\Application\initial_preferences" "%ProgramFiles%\BraveSoftware\Brave-Browser\Application"', weight: 30, option: "browser-brave"}

# Firefox
- !writeStatus: {status: 'Installing Firefox', option: "browser-firefox"}
- !cmd:
command: '"%ProgramData%\chocolatey\bin\choco.exe" install -y --force --allow-empty-checksums firefox'
weight: 150
option: "browser-firefox"
- !writeStatus: {status: 'Tweaking Firefox settings', option: "browser-firefox"}
- !writeStatus: {status: 'Configuring Firefox', option: "browser-firefox"}
- !run: {exe: 'FIREFOX.cmd', exeDir: true, weight: 20, option: "browser-firefox"}

# - !writeStatus: {status: 'Installing Ungoogled Chromium', option: "browser-ugc"}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"brave": {
"brave_vpn": {
"show_button": false
},
"new_tab_page": {
"hide_all_widgets": true
},
"p3a": {
"enabled": false,
"notice_acknowledged": true
},
"rewards": {
"inline_tip_buttons_enabled": false,
"show_brave_rewards_button_in_location_bar": false
},
"show_side_panel_button": false,
"sidebar": {
"sidebar_show_option": 0
},
"stats": {
"reporting_enabled": false
},
"wallet": {
"show_wallet_icon_on_toolbar": false
},
"webtorrent_enabled": false
},
"browser": {
"first_run_finished": true,
"has_seen_welcome_page": true
},
"user_experience_metrics": {
"reporting_enabled": false
}
}

This file was deleted.

15 changes: 0 additions & 15 deletions src/Executables/BraveSoftware/bookmarks.html

This file was deleted.

0 comments on commit 79753cf

Please sign in to comment.