You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
989 B
41 lines
989 B
|
4 months ago
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||
|
|
TARGET_DIR="../Games/ascension-wow/drive_c/Program Files/Ascension Launcher/resources/client/Interface/AddOns"
|
||
|
|
|
||
|
|
ADDONS=(
|
||
|
|
"TradeSkillMaster"
|
||
|
|
"TradeSkillMaster_Accounting"
|
||
|
|
"TradeSkillMaster_AuctionDB"
|
||
|
|
"TradeSkillMaster_Auctioning"
|
||
|
|
"TradeSkillMaster_Crafting"
|
||
|
|
"TradeSkillMaster_Destroying"
|
||
|
|
"TradeSkillMaster_ItemTracker"
|
||
|
|
"TradeSkillMaster_Mailing"
|
||
|
|
"TradeSkillMaster_Shopping"
|
||
|
|
"TradeSkillMaster_Warehousing"
|
||
|
|
)
|
||
|
|
|
||
|
|
if [[ ! -d "$TARGET_DIR" ]]; then
|
||
|
|
echo "Target AddOns directory not found: $TARGET_DIR" >&2
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
for addon in "${ADDONS[@]}"; do
|
||
|
|
live_path="${TARGET_DIR}/${addon}"
|
||
|
|
src_path="${ROOT_DIR}/${addon}"
|
||
|
|
|
||
|
|
if [[ ! -d "$src_path" ]]; then
|
||
|
|
echo "Source addon folder missing: $src_path" >&2
|
||
|
|
continue
|
||
|
|
fi
|
||
|
|
|
||
|
|
if [[ -L "$live_path" || -d "$live_path" ]]; then
|
||
|
|
rm -rf "$live_path"
|
||
|
|
fi
|
||
|
|
|
||
|
|
ln -s "$src_path" "$live_path"
|
||
|
|
echo "Linked ${addon}"
|
||
|
|
done
|