Skip to content

Commit b40be99

Browse files
authored
Update cp_dispatch.yml
Added Yui name Checks (Fixed incompatibility with versions < 5.17.0)
1 parent 7c74343 commit b40be99

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/cp_dispatch.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ jobs:
105105
- name: Set IS_COMPATIBLE_CONT as Output
106106
id: is-compatible-cont
107107
run: echo "is-compatible-cont=${{ env.IS_COMPATIBLE_CONT }}" | Out-File -Append -FilePath $env:GITHUB_OUTPUT
108+
109+
- name: Set Yui name (>= 5.17.0)
110+
if: env.IS_COMPATIBLE_CONT == 'true'
111+
run: echo "YUI_NAME=yui" | Out-File -Append -FilePath $env:GITHUB_ENV
112+
113+
- name: Set Yui name (< 5.17.0)
114+
if: env.IS_COMPATIBLE_CONT == 'false'
115+
run: echo "YUI_NAME=yukihana" | Out-File -Append -FilePath $env:GITHUB_ENV
108116

109117
- name: Set Yui fiddler name (>= 5.17.0)
110118
if: env.IS_COMPATIBLE_CONT == 'true'
@@ -137,8 +145,8 @@ jobs:
137145
run: |
138146
try {
139147
# Build the download URLs
140-
$YuiFiddlerUrl = "https://github.com/project-yui/Yui-patch/releases/download/$env:Yui_RELEASE/yui-$env:Yui_FIDDLER_NAME-win32-x86_64-$env:Yui_RELEASE.dll"
141-
$YuiHostPolicyUrl = "https://github.com/project-yui/Yui-patch/releases/download/$env:Yui_RELEASE/yui-hostpolicy-win32-x86_64-$env:Yui_RELEASE.dll"
148+
$YuiFiddlerUrl = "https://github.com/project-yui/Yui-patch/releases/download/$env:Yui_RELEASE/$env:YUI_NAME-$env:Yui_FIDDLER_NAME-win32-x86_64-$env:Yui_RELEASE.dll"
149+
$YuiHostPolicyUrl = "https://github.com/project-yui/Yui-patch/releases/download/$env:Yui_RELEASE/$env:YUI_NAME-hostpolicy-win32-x86_64-$env:Yui_RELEASE.dll"
142150
143151
# Print the URLs to ensure they're correct
144152
Write-Host "Downloading files from $env:Yui_RELEASE"

0 commit comments

Comments
 (0)