Update build.ps1

Signed-off-by: Tlntin <TlntinDeng01@Gmail.com>
This commit is contained in:
Tlntin
2023-03-08 12:06:07 +08:00
committed by GitHub
parent f14bbc52b7
commit 12402bcd60

2
script/build.ps1 vendored
View File

@@ -48,7 +48,7 @@ ForEach ($line in (Get-Content -Path .\app.csv | Select-Object -Skip 1)) {
# replace package name
# clear package_name with regex
(Get-Content -Path $common_conf_path -Raw) -replace '"productName":\s*"[^"]*"', '"productName": ""' | Set-Content -Path $common_conf_path
.\script\sd.exe "`"productName`":\s`"(.*?)`"" '"productName": ""' $common_conf_path
# replace package_name with no regex
.\script\sd.exe -s '"productName": ""' "`"productName`": `"$title`"" $common_conf_path