From 29ba12f0181ebd4eda066fe009b8e3e01cffd38c Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 8 Jan 2026 02:29:37 +0300 Subject: [PATCH] add scripts --- build_app.sh | 4 ++++ run_ui.sh | 5 +++++ setup_venv.sh | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 build_app.sh create mode 100644 run_ui.sh create mode 100644 setup_venv.sh diff --git a/build_app.sh b/build_app.sh new file mode 100644 index 0000000..8a3b330 --- /dev/null +++ b/build_app.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -euo pipefail + +./.venv/bin/pyinstaller --noconfirm --clean --name car_ui --windowed ./main.py diff --git a/run_ui.sh b/run_ui.sh new file mode 100644 index 0000000..4e16387 --- /dev/null +++ b/run_ui.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -euo pipefail + +export DISPLAY=:0 +./.venv/bin/python3 ./main.py diff --git a/setup_venv.sh b/setup_venv.sh new file mode 100644 index 0000000..6c75703 --- /dev/null +++ b/setup_venv.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -euo pipefail + +python3 -m venv ./.venv +./.venv/bin/pip install -r ./requirements.txt