diff --git a/README.md b/README.md index 76f1ae7..7f6654d 100644 --- a/README.md +++ b/README.md @@ -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.