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,12 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
ONE_FILE=false
CREATE_TAR=true
while [[ $# -gt 0 ]]; do
case "$1" in
--onefile) ONE_FILE=true; shift ;;
--no-tar) CREATE_TAR=false; shift ;;
*) echo "Unknown option: $1"; exit 1 ;;
esac
@@ -32,12 +30,6 @@ npm run build
echo "Installing desktop build dependencies..."
uv pip install -e ".[desktop]"
if $ONE_FILE; then
MODE="--onefile"
else
MODE="--onedir"
fi
echo "Packaging desktop app with PyInstaller..."
$PYTHON -m PyInstaller \
desktop.py \
@@ -45,7 +37,7 @@ $PYTHON -m PyInstaller \
--clean \
--name tono \
--windowed \
$MODE \
--onefile \
--distpath desktop-dist \
--workpath desktop-build \
--specpath desktop-build \
@@ -54,7 +46,8 @@ $PYTHON -m PyInstaller \
--collect-all matplotlib \
--collect-all scipy \
--collect-all skimage \
--collect-all webview
--collect-all webview \
--copy-metadata gwyfile
if $CREATE_TAR; then
TAR_PATH="desktop-dist/tono-linux.tar.gz"