|
32 | 32 | "beta-emu-tob": 5, |
33 | 33 | "emu-tob": 6 |
34 | 34 | }')[inputs.client_target] }} |
| 35 | + # Default ini profile for the target client |
| 36 | + mq_default_ini_profile: >- |
| 37 | + ${{ fromJSON('{ |
| 38 | + "live": "live", |
| 39 | + "test": "live", |
| 40 | + "emu-rof2": "emu-rof2", |
| 41 | + "beta-emu-rof2": "emu-rof2", |
| 42 | + "emu-tob": "live", |
| 43 | + "beta-emu-tob": "live" |
| 44 | + }')[inputs.client_target] }} |
35 | 45 | gh_release_flag: ${{ contains(fromJSON('["live","test","emu-rof2"]'), inputs.client_target) && '--latest' || '--prerelease' }} |
36 | 46 | # VeryVanilla publishes the following versions: |
37 | 47 | vv_enabled: ${{ contains(fromJSON('["live","test","emu-rof2"]'), inputs.client_target) }} |
|
42 | 52 | "emu-rof2": "2296" |
43 | 53 | }')[inputs.client_target] }} |
44 | 54 | # Bundled in VeryVanilla.zip but symbols go to SPECIAL_SYM_PATH. |
45 | | - vv_bundled_restricted: '["MQ2GroundSpawns","MQ2CWTNBuffs","CWTNCommons", "MQ2BuffMe"]' |
| 55 | + vv_bundled_restricted: '["MQ2GroundSpawns","MQ2CWTNBuffs","CWTNCommons", "MQ2BuffMe", "MQNearby"]' |
46 | 56 | # Standalone plugins |
47 | 57 | vv_standalone_map: >- |
48 | 58 | { |
@@ -98,6 +108,27 @@ jobs: |
98 | 108 | - name: "[Source] Update builtin submodules" |
99 | 109 | run: git submodule update --init --recursive --depth=1 |
100 | 110 |
|
| 111 | + - name: "[Source] Select MacroQuest_default.ini for release profile" |
| 112 | + shell: pwsh |
| 113 | + run: | |
| 114 | + $src = "data/config/MacroQuest_default.${{ env.mq_default_ini_profile }}.ini" |
| 115 | + $dest = "data/config/MacroQuest_default.ini" |
| 116 | + Copy-Item -LiteralPath $src -Destination $dest -Force |
| 117 | + $ct = "${{ inputs.client_target }}" |
| 118 | + $suffix = ($ct -split '-' | Where-Object { $_ } | ForEach-Object { |
| 119 | + $s = $_.ToLowerInvariant() |
| 120 | + [char]::ToUpperInvariant($s[0]) + $s.Substring(1) |
| 121 | + }) -join '' |
| 122 | + $class = "__MacroQuestTray$suffix" |
| 123 | + $name = "MacroQuest$suffix" |
| 124 | + $lines = Get-Content -LiteralPath $dest |
| 125 | + $lines = $lines | ForEach-Object { |
| 126 | + if ($_ -match '^\s*MacroQuestWinClassName\s*=') { "MacroQuestWinClassName=$class" } |
| 127 | + elseif ($_ -match '^\s*MacroQuestWinName\s*=') { "MacroQuestWinName=$name" } |
| 128 | + else { $_ } |
| 129 | + } |
| 130 | + Set-Content -LiteralPath $dest -Value $lines -Encoding utf8NoBOM |
| 131 | +
|
101 | 132 | - name: "[Plugins] Get extra plugins from docs site" |
102 | 133 | shell: pwsh |
103 | 134 | run: | |
|
0 commit comments