Skip to content

Commit

Permalink
Creating a portable firefox using the official installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamisedaxeh committed Aug 1, 2023
1 parent 9dc3805 commit 18537bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Build-Toolkit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,13 @@ function Add-VSCode {

function Add-Browsers {
Write-Host ">> Add portable browsers and useful FF extensions..." -ForegroundColor Yellow
# Cannot add the FF portable bundle because it cause the final archive to be bigger than the accepted size for an release artefact.
New-Item -ItemType "directory" -Path "$WorkFolder\Browsers"
Get-RemoteFile -Uri "https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/913064/chrome-win.zip" -OutFile "$WorkFolder\Browsers\chromium-portable.zip" -UseClassicWay
# Download firefox extract the binnary from the installer and create a portable zip
Get-RemoteFile -Uri "https://download.mozilla.org/?product=firefox-latest-ssl&os=win64&lang=en-US" -OutFile "$WorkFolder\Browsers\Firefox-latest.exe" -UseClassicWay
7z -bso0 -bsp0 -o"$WorkFolder\Browsers\" x "$WorkFolder\Browsers\Firefox-latest.exe"
Remove-Item "$WorkFolder\Browsers\Firefox-latest.exe"
7z -bso0 -bsp0 a -sdel "$WorkFolder\Browsers\Firefox-latest.zip" "$WorkFolder\Browsers\core" "$WoarkFolder\Browsers\setup.exe"
Get-RemoteFile -Uri "https://addons.mozilla.org/firefox/downloads/file/3616824/foxyproxy_standard-7.5.1-an+fx.xpi" -OutFile "$WorkFolder\Browsers\FF-FoxyProxyStandard.xpi" -UseClassicWay
Get-RemoteFile -Uri "https://addons.mozilla.org/firefox/downloads/file/3811501/tab_reloader_page_auto_refresh-0.3.7-fx.xpi" -OutFile "$WorkFolder\Browsers\FF-TabReloader.xpi" -UseClassicWay
Get-RemoteFile -Uri "https://addons.mozilla.org/firefox/downloads/file/3821991/firefox_multi_account_containers-7.4.0-fx.xpi" -OutFile "$WorkFolder\Browsers\FF-MultiAccountContainer.xpi" -UseClassicWay
Expand Down

0 comments on commit 18537bb

Please sign in to comment.