Add windows support
This commit is contained in:
parent
f4cf45247c
commit
2e6221b881
25
README.md
25
README.md
@ -8,6 +8,8 @@ A sane default Firefox profile
|
||||
## Installation
|
||||
|
||||
### Mac
|
||||
- In a terminal, run
|
||||
|
||||
```bash
|
||||
NAME=$RANDOM
|
||||
if command -v wget 2>&1 >/dev/null; then
|
||||
@ -31,6 +33,8 @@ fi
|
||||
'/Applications/Firefox.app/Contents/MacOS/firefox' -p
|
||||
```
|
||||
### Linux
|
||||
- In a terminal, run
|
||||
|
||||
```bash
|
||||
NAME=$RANDOM
|
||||
if command -v wget 2>&1 >/dev/null; then
|
||||
@ -57,3 +61,24 @@ else
|
||||
firefox-bin -p
|
||||
fi
|
||||
```
|
||||
|
||||
### Windows
|
||||
- In powershell, run
|
||||
|
||||
```
|
||||
md $env:APPDATA\Mozilla\Firefox\Profiles
|
||||
curl -outf "$env:APPDATA\Mozilla\Firefox\Profiles\tmp.zip" https://austenwares.com/gogs/stonewareslord/firefox-link/archive/master.zip
|
||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:APPDATA\Mozilla\Firefox\Profiles\tmp.zip", "$env:APPDATA\Mozilla\Firefox\Profiles\firefox-link")
|
||||
del "$env:APPDATA\Mozilla\Firefox\Profiles\tmp.zip"
|
||||
echo > "$env:APPDATA\Mozilla\Firefox\profiles.ini"
|
||||
[General]
|
||||
StartWithLastProfile=1
|
||||
[Profile0]
|
||||
Name=firefox-link
|
||||
IsRelative=1
|
||||
Path=Profiles/firefox-link
|
||||
Default=1
|
||||
|
||||
& "C:\Program Files\Mozilla Firefox\firefox.exe"
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user