From 66b863f5fc31c44aa2690c2809766394b6ad315b Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Wed, 14 May 2025 23:19:46 +0300 Subject: [PATCH] added searchFixes patch #2 --- run.ps1 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/run.ps1 b/run.ps1 index 04daa39..a5c2bff 100644 --- a/run.ps1 +++ b/run.ps1 @@ -1078,6 +1078,12 @@ function Helper($paramname) { $n = "xpui.css" $json = $webjson.others } + "Fixjs" { + $n = $name + $contents = "searchFixes" + $name = "patches.json.others." + $json = $webjson.others + } "Cssmin" { # Minification of all *.css $contents = "cssmin" @@ -1760,7 +1766,17 @@ If ($test_spa) { injection -p $xpui_spa_patch -f "spotx-helper/lyrics-color" -n @("rules.css", "colors.css") -c @($rulesContent, $colorsContent) -i "rules.css" } - extract -counts 'one' -method 'zip' -name 'xpui.js' -helper 'VariousofXpui-js' + extract -counts 'one' -method 'zip' -name 'xpui.js' -helper 'VariousofXpui-js' + + if ([version]$offline -ge [version]"1.2.28.581" -and [version]$offline -le [version]"1.2.57.463") { + + if ([version]$offline -ge [version]"1.2.45.454") { $typefile = "xpui.js"} + + else { $typefile = "xpui-routes-search.js" } + + extract -counts 'one' -method 'zip' -name $typefile -helper "Fixjs" + } + if ($devtools -and [version]$offline -ge [version]"1.2.35.663") { extract -counts 'one' -method 'zip' -name 'xpui-routes-desktop-settings.js' -helper 'Dev'