7272
7373 echo "is_valid=$isValid" | Out-File -Append -FilePath $env:GITHUB_OUTPUT
7474
75- download-yukihana -patch :
75+ download-Yui -patch :
7676 runs-on : windows-latest
7777
7878 needs : validate-version
8181
8282 outputs :
8383 is-compatible-cont : ${{ steps.is-compatible-cont.outputs.is-compatible-cont }}
84- yukihana -fiddler-name : ${{ steps.yukihana -fiddler-name.outputs.yukihana -fiddler-name }}
84+ Yui -fiddler-name : ${{ steps.Yui -fiddler-name.outputs.Yui -fiddler-name }}
8585
8686 steps :
8787 - name : Compare Patching Version Compatible with 5.17.0
@@ -106,60 +106,60 @@ jobs:
106106 id : is-compatible-cont
107107 run : echo "is-compatible-cont=${{ env.IS_COMPATIBLE_CONT }}" | Out-File -Append -FilePath $env:GITHUB_OUTPUT
108108
109- - name : Set Yukihana fiddler name (>= 5.17.0)
109+ - name : Set Yui fiddler name (>= 5.17.0)
110110 if : env.IS_COMPATIBLE_CONT == 'true'
111- run : echo "YUKIHANA_FIDDLER_NAME =fiddler" | Out-File -Append -FilePath $env:GITHUB_ENV
111+ run : echo "Yui_FIDDLER_NAME =fiddler" | Out-File -Append -FilePath $env:GITHUB_ENV
112112
113- - name : Set Yukihana fiddler name (< 5.17.0)
113+ - name : Set Yui fiddler name (< 5.17.0)
114114 if : env.IS_COMPATIBLE_CONT == 'false'
115- run : echo "YUKIHANA_FIDDLER_NAME =libfiddler" | Out-File -Append -FilePath $env:GITHUB_ENV
115+ run : echo "Yui_FIDDLER_NAME =libfiddler" | Out-File -Append -FilePath $env:GITHUB_ENV
116116
117- - name : Set YUKIHANA_FIDDLER_NAME as Output
118- id : yukihana -fiddler-name
119- run : echo "yukihana -fiddler-name=${{ env.YUKIHANA_FIDDLER_NAME }}" | Out-File -Append -FilePath $env:GITHUB_OUTPUT
117+ - name : Set Yui_FIDDLER_NAME as Output
118+ id : Yui -fiddler-name
119+ run : echo "Yui -fiddler-name=${{ env.Yui_FIDDLER_NAME }}" | Out-File -Append -FilePath $env:GITHUB_OUTPUT
120120
121- - name : Create yukihana directory
121+ - name : Create Yui directory
122122 run : |
123- if (-Not (Test-Path "yukihana ")) {
124- New-Item -ItemType Directory -Path "yukihana "
123+ if (-Not (Test-Path "Yui ")) {
124+ New-Item -ItemType Directory -Path "Yui "
125125 }
126126 shell : pwsh
127127
128- - name : Set Yukihana Release (>= 5.17.0)
128+ - name : Set Yui Release (>= 5.17.0)
129129 if : env.IS_COMPATIBLE_CONT == 'true'
130- run : echo "YUKIHANA_RELEASE =continuous" | Out-File -Append -FilePath $env:GITHUB_ENV
130+ run : echo "Yui_RELEASE =continuous" | Out-File -Append -FilePath $env:GITHUB_ENV
131131
132- - name : Set Yukihana Release (< 5.17.0)
132+ - name : Set Yui Release (< 5.17.0)
133133 if : env.IS_COMPATIBLE_CONT == 'false'
134- run : echo "YUKIHANA_RELEASE =v1.0.9" | Out-File -Append -FilePath $env:GITHUB_ENV
134+ run : echo "Yui_RELEASE =v1.0.9" | Out-File -Append -FilePath $env:GITHUB_ENV
135135
136- - name : Download Yukihana Patch
136+ - name : Download Yui Patch
137137 run : |
138138 try {
139139 # Build the download URLs
140- $yukihanaFiddlerUrl = "https://github.com/project-yukihana/Yukihana -patch/releases/download/$env:YUKIHANA_RELEASE/yukihana -$env:YUKIHANA_FIDDLER_NAME -win32-x86_64-$env:YUKIHANA_RELEASE .dll"
141- $yukihanaHostPolicyUrl = "https://github.com/project-yukihana/Yukihana -patch/releases/download/$env:YUKIHANA_RELEASE/yukihana -hostpolicy-win32-x86_64-$env:YUKIHANA_RELEASE .dll"
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"
142142
143143 # Print the URLs to ensure they're correct
144- Write-Host "Downloading files from $env:YUKIHANA_RELEASE "
145- Write-Host "Yukihana Fiddler URL: $yukihanaFiddlerUrl "
146- Write-Host "Yukihana HostPolicy URL: $yukihanaHostPolicyUrl "
144+ Write-Host "Downloading files from $env:Yui_RELEASE "
145+ Write-Host "Yui Fiddler URL: $YuiFiddlerUrl "
146+ Write-Host "Yui HostPolicy URL: $YuiHostPolicyUrl "
147147
148148 # Download the files
149- Invoke-WebRequest -Uri $yukihanaFiddlerUrl -OutFile "yukihana \$env:YUKIHANA_FIDDLER_NAME .dll"
150- Invoke-WebRequest -Uri $yukihanaHostPolicyUrl -OutFile "yukihana \hostpolicy.dll"
149+ Invoke-WebRequest -Uri $YuiFiddlerUrl -OutFile "Yui \$env:Yui_FIDDLER_NAME .dll"
150+ Invoke-WebRequest -Uri $YuiHostPolicyUrl -OutFile "Yui \hostpolicy.dll"
151151 }
152152 catch {
153153 Write-Error "Failed to download the patch files. Error details: $_"
154154 exit 1
155155 }
156156 shell : pwsh
157157
158- - name : Upload yukihana folder as an artifact
158+ - name : Upload Yui folder as an artifact
159159 uses : actions/upload-artifact@v4
160160 with :
161- name : yukihana -patch
162- path : yukihana /
161+ name : Yui -patch
162+ path : Yui /
163163 if-no-files-found : error
164164
165165 download-msojocs-server :
@@ -241,7 +241,7 @@ jobs:
241241 runs-on : windows-latest
242242
243243 needs :
244- - download-yukihana -patch
244+ - download-Yui -patch
245245 - download-msojocs-server
246246 - download-fiddler-everywhere
247247
@@ -252,8 +252,8 @@ jobs:
252252 - name : Download Yukuhana-Patch
253253 uses : actions/download-artifact@v4
254254 with :
255- name : yukihana -patch
256- path : yukihana -patch
255+ name : Yui -patch
256+ path : Yui -patch
257257
258258 - name : Download msojocs-Server
259259 uses : actions/download-artifact@v4
@@ -269,7 +269,7 @@ jobs:
269269
270270 - name : List the contents of the downloaded artifacts
271271 run : |
272- Get-ChildItem -Recurse yukihana -patch
272+ Get-ChildItem -Recurse Yui -patch
273273 Get-ChildItem -Recurse msojocs-patch
274274 Get-ChildItem -Recurse fe_app64
275275 shell : pwsh
@@ -279,37 +279,37 @@ jobs:
279279
280280 - name : Patch fiddler.dll / libfiddler.dll
281281 run : |
282- $original_fiddler = "FE/${{ needs.download-yukihana -patch.outputs.yukihana -fiddler-name }}.dll"
283- $yukihana_fiddler = "yukihana -patch/${{ needs.download-yukihana -patch.outputs.yukihana -fiddler-name }}.dll"
282+ $original_fiddler = "FE/${{ needs.download-Yui -patch.outputs.Yui -fiddler-name }}.dll"
283+ $Yui_fiddler = "Yui -patch/${{ needs.download-Yui -patch.outputs.Yui -fiddler-name }}.dll"
284284
285- if ((Test-Path $original_fiddler) -and (Test-Path $yukihana_fiddler )) {
286- Copy-Item -Path $yukihana_fiddler -Destination $original_fiddler -Force
287- Write-Host "Replaced $original_fiddler with $yukihana_fiddler "
285+ if ((Test-Path $original_fiddler) -and (Test-Path $Yui_fiddler )) {
286+ Copy-Item -Path $Yui_fiddler -Destination $original_fiddler -Force
287+ Write-Host "Replaced $original_fiddler with $Yui_fiddler "
288288 } else {
289- Write-Host "fiddler / libfiddler or yukihana patch not found"
289+ Write-Host "fiddler / libfiddler or Yui patch not found"
290290 }
291291 shell : pwsh
292292
293293 - name : Patch hostpolicy.dll
294294 run : |
295295 $original_hostpolicy = "FE/resources/app/out/WebServer/hostpolicy.dll"
296296 $original_copy_hostpolicy = "FE/resources/app/out/WebServer/hostpolicy.original.dll"
297- $yukihana_hostpolicy = "yukihana -patch/hostpolicy.dll"
297+ $Yui_hostpolicy = "Yui -patch/hostpolicy.dll"
298298
299- if ((Test-Path $original_hostpolicy) -and (Test-Path $yukihana_hostpolicy )) {
299+ if ((Test-Path $original_hostpolicy) -and (Test-Path $Yui_hostpolicy )) {
300300 Move-Item -Path $original_hostpolicy -Destination $original_copy_hostpolicy
301- Copy-Item -Path $yukihana_hostpolicy -Destination $original_hostpolicy
302- Write-Host "Renamed $original_fiddler with $original_copy_hostpolicy & Applied Yukihana Patch"
301+ Copy-Item -Path $Yui_hostpolicy -Destination $original_hostpolicy
302+ Write-Host "Renamed $original_fiddler with $original_copy_hostpolicy & Applied Yui Patch"
303303 } else {
304- Write-Host "original hostpolicy.dll or yukihana hotstpolicy not found"
304+ Write-Host "original hostpolicy.dll or Yui hotstpolicy not found"
305305 }
306306
307- - name : Clean yukihana -patch
307+ - name : Clean Yui -patch
308308 run : |
309- if (Test-Path yukihana -patch) {
310- Remove-Item -Path "yukihana -patch" -Recurse
309+ if (Test-Path Yui -patch) {
310+ Remove-Item -Path "Yui -patch" -Recurse
311311 } else {
312- Write-Host "yukihana -patch Folder not found"
312+ Write-Host "Yui -patch Folder not found"
313313 }
314314
315315 - name : Copy Server Folder
0 commit comments