update
This commit is contained in:
@@ -22,11 +22,17 @@ if (Test-Path $iconFile) {
|
||||
}
|
||||
|
||||
Write-Host "EXE wird gebaut..."
|
||||
Write-Host " Hinweis: backend_url.txt wird NICHT in die EXE gebunden — die Huelle nutzt"
|
||||
Write-Host " standardmaessig https://empfang.aza-medwork.ch/empfang/ (unabhaengig von AzA Office)."
|
||||
Write-Host " Optional: backend_url.txt NEBEN die fertige EXE legen, oder AZA_EMPFANG_URL setzen."
|
||||
$appFile = Join-Path $projectRoot "aza_empfang_app.py"
|
||||
$urlFile = Join-Path $projectRoot "backend_url.txt"
|
||||
$addData = @()
|
||||
if (Test-Path $urlFile) {
|
||||
$addData = @("--add-data", "$urlFile;.")
|
||||
if ($env:AZA_EMBED_BACKEND_URL_IN_EMPFANG_EXE -eq "1") {
|
||||
$urlFile = Join-Path $projectRoot "backend_url.txt"
|
||||
if (Test-Path $urlFile) {
|
||||
$addData = @("--add-data", "$urlFile;.")
|
||||
Write-Host " AZA_EMBED_BACKEND_URL_IN_EMPFANG_EXE=1: bundle backend_url.txt (benoetigt AZA_EMPFANG_USE_BUNDLED_URL=1 zur Laufzeit)"
|
||||
}
|
||||
}
|
||||
|
||||
pyinstaller --noconfirm --onefile --windowed `
|
||||
|
||||
Reference in New Issue
Block a user