doc: add windows install commands (#568)

This commit is contained in:
unavailable500
2023-05-25 14:57:29 +02:00
committed by GitHub
parent e5a8bb813c
commit 7e1d26c7a3

View File

@@ -48,7 +48,18 @@ Most notable features:
wget -P /tmp/ https://github.com/tomasklaen/uosc/releases/latest/download/uosc.zip
unzip -od ~/.config/mpv/ /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.