inital impl of powershell script

This commit is contained in:
Bruno Shiroma 2021-01-30 13:25:06 -03:00
parent c998f21117
commit ba26cf152b
6 changed files with 67 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
firefox.exe
librewolf

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "settings"]
path = settings
url = git@gitlab.com:librewolf-community/settings.git

BIN
7za.exe Normal file

Binary file not shown.

31
License.txt Normal file
View file

@ -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/

30
package.ps1 Normal file
View file

@ -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

1
settings Submodule

@ -0,0 +1 @@
Subproject commit 640b375dc02c5b089f678ed16b0232d1c0cc0721