mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Fixed library options not appearing in windows
This commit is contained in:
1 parent
d10b11f8eb
commit
cd1914216f
5 files changed
+66
-2
No files matched your search
@@ -16,7 +16,12 @@ Set-Location $Root
|
||||
$Py = Join-Path $Root ".venv\Scripts\python.exe"
|
||||
if (-not (Test-Path $Py)) { $Py = "python" }
|
||||
|
||||
& $Py -m PyInstaller --noconfirm --clean konduktor-sidecar.spec
|
||||
# PyInstaller logs to stderr. Windows PowerShell 5.1 (unlike pwsh 7) turns a
|
||||
# native command's stderr into an error record, which "Stop" makes fatal on the
|
||||
# first INFO line — so relax it for this call and judge by the exit code.
|
||||
$ErrorActionPreference = "Continue"
|
||||
& $Py -m PyInstaller --noconfirm --clean konduktor-sidecar.spec 2>&1 | ForEach-Object { "$_" }
|
||||
$ErrorActionPreference = "Stop"
|
||||
if ($LASTEXITCODE -ne 0) { throw "PyInstaller failed ($LASTEXITCODE)" }
|
||||
Write-Host "Built: $Root\dist\konduktor-sidecar\"
|
||||
|
||||
|
||||
@@ -120,8 +120,12 @@ app.add_middleware(
|
||||
"http://localhost:5173",
|
||||
"http://127.0.0.1:5173",
|
||||
# Packaged desktop app: the webview's origin when Tauri loads the built
|
||||
# frontend (macOS uses tauri://, Windows/Linux use https://tauri.localhost).
|
||||
# frontend. macOS uses tauri://; Windows/Linux default to
|
||||
# https://tauri.localhost, but lib.rs forces the http scheme
|
||||
# (use_https_scheme(false)) so the sidecar is not mixed content —
|
||||
# without the http origin here, the Windows app reaches no API at all.
|
||||
"tauri://localhost",
|
||||
"http://tauri.localhost",
|
||||
"https://tauri.localhost",
|
||||
],
|
||||
allow_methods=["*"],
|
||||
|
||||
Reference in new issue
Block a user