diff --git a/script/build.ps1 b/script/build.ps1 index 886cde2..75cf0f9 100644 --- a/script/build.ps1 +++ b/script/build.ps1 @@ -28,7 +28,6 @@ $windows_conf_path = "src-tauri/tauri.windows.conf.json" $total = $total - 1 # for windows, we need replace package name to title -# .\script\sd.exe "\"productName\": \"weread\"" "\"productName\": \"WeRead\"" src-tauri\tauri.conf.json ForEach ($line in (Get-Content -Path .\app.csv | Select-Object -Skip 1)) { $name, $title, $name_zh, $url = $line.Split(",") Write-Host "building package ${index}/${total}" @@ -48,7 +47,8 @@ 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 + # (Get-Content -Path $common_conf_path -Raw) -replace '"productName":\s*"[^"]*"', '"productName": ""' | Set-Content -Path $common_conf_path # replace package_name with no regex .\script\sd.exe -s '"productName": ""' "`"productName`": `"$title`"" $common_conf_path diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 55a6c01..cad1afa 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,12 +1,12 @@ { "package": { - "productName": "WeRead", + "productName": "", "version": "1.0.0" }, "tauri": { "windows": [ { - "url": "", + "url": "https://riju.codes/", "transparent": true, "fullscreen": false, "width": 1200, @@ -29,3 +29,4 @@ } } + diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index b46b429..ca3d017 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -1,14 +1,14 @@ { "tauri": { "bundle": { - "icon": ["png/weread_256.ico", "png/weread_32.ico"], - "identifier": "com.tw93.weread", + "icon": ["png/coderunner_256.ico", "png/coderunner_32.ico"], + "identifier": "com.tw93.coderunner", "active": true, "category": "DeveloperTool", "copyright": "", "externalBin": [], "longDescription": "", - "resources": ["png/weread_32.ico"], + "resources": ["png/coderunner_32.ico"], "shortDescription": "", "targets": ["msi"], "windows": { @@ -23,3 +23,6 @@ } } } + + +