added searchFixes patch #2

This commit is contained in:
amd64fox
2025-05-14 23:19:46 +03:00
parent cbbf8f83f3
commit 66b863f5fc
+16
View File
@@ -1078,6 +1078,12 @@ function Helper($paramname) {
$n = "xpui.css" $n = "xpui.css"
$json = $webjson.others $json = $webjson.others
} }
"Fixjs" {
$n = $name
$contents = "searchFixes"
$name = "patches.json.others."
$json = $webjson.others
}
"Cssmin" { "Cssmin" {
# Minification of all *.css # Minification of all *.css
$contents = "cssmin" $contents = "cssmin"
@@ -1762,6 +1768,16 @@ If ($test_spa) {
} }
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") { if ($devtools -and [version]$offline -ge [version]"1.2.35.663") {
extract -counts 'one' -method 'zip' -name 'xpui-routes-desktop-settings.js' -helper 'Dev' extract -counts 'one' -method 'zip' -name 'xpui-routes-desktop-settings.js' -helper 'Dev'
} }