doc: add windows install commands (#568)
This commit is contained in:
13
README.md
13
README.md
@@ -48,7 +48,18 @@ Most notable features:
|
|||||||
wget -P /tmp/ https://github.com/tomasklaen/uosc/releases/latest/download/uosc.zip
|
wget -P /tmp/ https://github.com/tomasklaen/uosc/releases/latest/download/uosc.zip
|
||||||
unzip -od ~/.config/mpv/ /tmp/uosc.zip
|
unzip -od ~/.config/mpv/ /tmp/uosc.zip
|
||||||
rm -fv /tmp/uosc.zip
|
rm -fv /tmp/uosc.zip
|
||||||
wget -NP ~/.config/mpv/scripts/ https://raw.githubusercontent.com/po5/thumbfast/master/thumbfast.lua
|
```
|
||||||
|
|
||||||
|
On Windows these equivalent PowerShell commands can be used:
|
||||||
|
```PowerShell
|
||||||
|
New-Item -ItemType Directory -Force -Path "$env:APPDATA/mpv/script-opts/"
|
||||||
|
$Folder = "$env:APPDATA/mpv/scripts/uosc_shared"
|
||||||
|
if (Test-Path $Folder) {
|
||||||
|
Remove-Item -LiteralPath $Folder -Force -Recurse
|
||||||
|
}
|
||||||
|
Invoke-WebRequest -OutFile "$env:APPDATA/mpv/uosc_tmp.zip" -Uri https://github.com/tomasklaen/uosc/releases/latest/download/uosc.zip
|
||||||
|
Expand-Archive "$env:APPDATA/mpv/uosc_tmp.zip" -DestinationPath "$env:APPDATA/mpv" -Force
|
||||||
|
Remove-Item "$env:APPDATA/mpv/uosc_tmp.zip"
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **uosc** is a replacement for the built in osc, so that has to be disabled first.
|
2. **uosc** is a replacement for the built in osc, so that has to be disabled first.
|
||||||
|
Reference in New Issue
Block a user