From 9e72c6248113b45aaa5c9699f422671512a8d41b Mon Sep 17 00:00:00 2001 From: Jimmy Date: Tue, 14 Apr 2026 23:13:21 +1200 Subject: [PATCH] fix(led-tool): build cli without spec file dependency --- Pipfile | 2 +- install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pipfile b/Pipfile index 1182f10..98f9448 100644 --- a/Pipfile +++ b/Pipfile @@ -16,5 +16,5 @@ python_version = "3" [scripts] web = "python web.py" cli = "python cli.py" -build = "pyinstaller --clean led-cli.spec" +build = "pyinstaller --clean --onefile --name led-cli --paths lib cli.py" install = "pipenv install" diff --git a/install.sh b/install.sh index 45311d2..af9e7f0 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,7 @@ pipenv install "$@" if [ ! -f "dist/led-cli" ] || [ "cli.py" -nt "dist/led-cli" ] || [ "device.py" -nt "dist/led-cli" ]; then echo "" echo "Building binary..." - pipenv run pyinstaller --clean led-cli.spec + pipenv run pyinstaller --clean --onefile --name led-cli --paths lib cli.py fi # Ensure ~/.local/bin exists