Skip to content

Commit a6eb5ec

Browse files
committed
Moved config logic to a unified codebase, shared between several addons
1 parent 22b9774 commit a6eb5ec

23 files changed

+74
-1003
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@ jobs:
1717
- name: Replace toc-versions
1818
uses: NumyAddon/ToCVersions@v1
1919

20+
- name: Grab NumyConfig Config Directory
21+
uses: actions/checkout@v4
22+
with:
23+
repository: NumyAddon/NumyConfig
24+
path: 'Config'
25+
sparse-checkout: 'Config'
26+
sparse-checkout-cone-mode: false
27+
28+
- name: Namespace config addon placeholders
29+
run: |
30+
mv Config/Config/* Config
31+
grep -rl __NUMY_CONFIG_ADDON_PLACEHOLDER__ Config/*.{xml,lua} | xargs sed -i "s/__NUMY_CONFIG_ADDON_PLACEHOLDER__/MythicPlusTweaks/g"
32+
rm -rf Config/.git
33+
rm -rf Config/Config
34+
git add Config/*
35+
shell: bash
36+
2037
- name: Create Retail Package
2138
uses: BigWigsMods/packager@v2
2239
env:

MythicPlusTweaks.toc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Interface: @toc-version-retail@,@toc-version-midnight@
1+
## Interface: @toc-version-retail@,@toc-version-midnight@,120000
22
## Title: Mythic+ Tweaks
33
## Author: Numy
44
## IconTexture: Interface\Addons\MythicPlusTweaks\media\icon
@@ -27,8 +27,7 @@ SharedUtil.lua
2727
KeystoneUtil.lua
2828
core.lua
2929

30-
settingsTemplates.xml
31-
config.lua
30+
config.xml
3231

3332
modules\dungeonTeleports.lua
3433
modules\dungeonIconTooltip.lua

0 commit comments

Comments
 (0)