fix build

This commit is contained in:
matei jordache
2026-03-30 13:11:51 -07:00
parent b8c4cc5a1c
commit 45a512f3aa
3 changed files with 7 additions and 25 deletions

View File

@@ -1,6 +1,3 @@
param(
[switch]$OneFile
)
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
@@ -52,8 +49,6 @@ Write-Host "Installing desktop build dependencies..."
& uv pip install -e ".[desktop]"
Assert-LastExitCode "Desktop dependency installation"
$mode = if ($OneFile) { "--onefile" } else { "--onedir" }
$pyInstallerArgs = @(
"-m", "PyInstaller",
"desktop.py",
@@ -61,7 +56,7 @@ $pyInstallerArgs = @(
"--clean",
"--name", "tono",
"--windowed",
$mode,
"--onefile",
"--distpath", "desktop-dist",
"--workpath", "desktop-build",
"--specpath", "desktop-build",
@@ -71,6 +66,7 @@ $pyInstallerArgs = @(
"--collect-all", "scipy",
"--collect-all", "skimage",
"--collect-all", "webview",
"--copy-metadata", "gwyfile",
"--icon", "../resources/icon.ico"
)