Skip to content

Instantly share code, notes, and snippets.

@psykzz
Created December 28, 2019 13:19
Show Gist options
  • Save psykzz/41df10f69e5eb0517c2bd8d1bf94aae8 to your computer and use it in GitHub Desktop.
Save psykzz/41df10f69e5eb0517c2bd8d1bf94aae8 to your computer and use it in GitHub Desktop.
#
# 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