Last active
April 6, 2023 20:05
-
-
Save Gethe/aa3325ed88b2a92d23ec276c7383e034 to your computer and use it in GitHub Desktop.
Create symlinks for RealUI project folder
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
#### Edit these lines for your setup #### | |
$projectPath = "D:\Projects" # This is where your repos are located | |
$wowPath = "E:\World of Warcraft" # The root WoW folder | |
#### End Config #### | |
$branch = Read-Host "Which WoW branch do you want to link to? (live)|ptr|beta" | |
if ($branch -eq "") { | |
$branch = "retail" #default to live | |
} | |
$destPath = "$wowPath\_$branch`_" | |
function LinkAddon ($name, $path) { | |
Write-Host $name | |
Invoke-Expression -Command "cmd /c mklink `/d `"$destPath`\Interface`\AddOns`\$name`" `"$path`\$name`"" | |
} | |
### RealUI ### | |
$realUIPath = "$projectPath\RealUI" | |
$realUI = {@()}.Invoke() | |
Get-ChildItem -Path "$realUIPath" -Filter "*RealUI_*" | % { | |
$realUI.Add($_) | |
} | |
$realUI.Add("nibRealUI") | |
foreach ($name in $realUI) { | |
LinkAddon $name $realUIPath | |
} | |
### Other AddOns ### | |
LinkAddon "oUF" $projectPath | |
LinkAddon "Aurora" $projectPath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment