diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aaab1bc --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +firefox.exe +librewolf \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..11f0811 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +stages: + - build + +build_job: + stage: build + script: + - '& git submodule update --init --recursive' #pull the settings submodule + - '& $env:CI_PROJECT_DIR\package.ps1' + artifacts: + expire_in: 1 yrs + paths: + - librewolf + tags: + - windows diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1d63467 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "settings"] + path = settings + url = https://gitlab.com/librewolf-community/settings.git diff --git a/7za.exe b/7za.exe new file mode 100644 index 0000000..2bdd57d Binary files /dev/null and b/7za.exe differ diff --git a/License.txt b/License.txt new file mode 100644 index 0000000..48dc6c6 --- /dev/null +++ b/License.txt @@ -0,0 +1,31 @@ + 7-Zip Extra + ~~~~~~~~~~~ + License for use and distribution + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + Copyright (C) 1999-2019 Igor Pavlov. + + 7-Zip Extra files are under the GNU LGPL license. + + + Notes: + You can use 7-Zip Extra on any computer, including a computer in a commercial + organization. You don't need to register or pay for 7-Zip. + + + GNU LGPL information + -------------------- + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You can receive a copy of the GNU Lesser General Public License from + http://www.gnu.org/ + diff --git a/README.md b/README.md index a47e71e..e3d9463 100644 --- a/README.md +++ b/README.md @@ -1 +1,16 @@ -This repository is still a work in progress +# Librewolf Windows + +## Instalation/Creation + * clone this repository + * execute the package.ps1 on powershell + + This is create a folder *librewolf* on current dir, with subfolder core (its content of the firefox.exe), with Firefox configured with scripts/settings of librewolf. + From that point you can install using the setup.exe or simple execute the ***firefox.exe*** on the core folder. + +## Cloning the repo +```powershell +git clone --recursive https://gitlab.com/librewolf-community/browser/windows.git +``` + +### Opensource Licences/Uses +This scripts use and embed [7zip](https://www.7-zip.org/) diff --git a/package.ps1 b/package.ps1 new file mode 100644 index 0000000..f33e289 --- /dev/null +++ b/package.ps1 @@ -0,0 +1,30 @@ +# delete old things... +Remove-Item -Path firefox.exe -Force +Remove-Item -Path librewolf -Force + + +# windows download version lastest win64 +$url = "https://download.mozilla.org/?product=firefox-latest-ssl&os=win64" + +# windows download version lastest win32 +#$url = "https://download.mozilla.org/?product=firefox-latest-ssl&os=win" + +$downloadfile = "$PSScriptRoot\firefox.exe" + +Write-Output "Downloading to $downloadfile" + +# download firefox +Invoke-WebRequest -Uri $url -outfile $downloadfile + +Write-Output "Extracting $downloadfile to librewolf" +# extract with 7zip +& "$PSScriptRoot\7za.exe" x -olibrewolf .\firefox.exe + +Write-Output "Delete files with privacy....." +# remove contact with mothership +Remove-Item -Path librewolf\core\crashreporter.exe -Force +Remove-Item -Path librewolf\core\updater.exe -Force +Remove-Item -Path librewolf\core\pingsender.exe -Force + +Write-Output "Copy librewolf settings" +Copy-Item -Path "$PSScriptRoot\settings\*" -Destination "$PSScriptRoot\librewolf\core" -Recurse -force \ No newline at end of file diff --git a/settings b/settings new file mode 160000 index 0000000..640b375 --- /dev/null +++ b/settings @@ -0,0 +1 @@ +Subproject commit 640b375dc02c5b089f678ed16b0232d1c0cc0721