From 18537bb4f448d7d1bd838fbef1fe7b190cd49f8b Mon Sep 17 00:00:00 2001 From: Lamisedaxeh Date: Tue, 25 Jul 2023 18:10:37 +0200 Subject: [PATCH] Creating a portable firefox using the official installer --- Build-Toolkit.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Build-Toolkit.ps1 b/Build-Toolkit.ps1 index 6d3c7f9..c5e281d 100644 --- a/Build-Toolkit.ps1 +++ b/Build-Toolkit.ps1 @@ -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