Created
December 28, 2019 13:19
-
-
Save psykzz/41df10f69e5eb0517c2bd8d1bf94aae8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# elvui.ps1 | |
# | |
# a handy script to update your ElvUI without using tukui addon manager | |
# | |
# | |
# CHANGE THIS. | |
$addonsDir = "D:\Battle.net\Games\World of Warcraft\_retail_\Interface\AddOns" | |
$outfile = "elvui.zip" | |
$baseuri = "https://tukui.org" | |
$relativeuri = (Invoke-WebRequest -Uri $baseuri -UseBasicParsing).Links.Href | Select-String -Pattern "elvui-.*\.zip" | |
$fulluri = "$($baseuri)$($relativeuri)" | |
Write-Host $fulluri | |
Invoke-WebRequest -Uri $fulluri -OutFile $outfile | |
Expand-Archive -Path $outfile -DestinationPath $addonsDir -Force | |
Remove-Item $outfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment