remake the whole thing. still not finished

This commit is contained in:
creations 2025-04-03 10:06:43 -04:00
parent 12741ce4ba
commit 78c532808e
Signed by: creations
GPG key ID: 8F553AA4320FC711
8 changed files with 611 additions and 160 deletions

17
helpers/installer.sh Normal file
View file

@ -0,0 +1,17 @@
VENV_DIR="$SCRIPT_DIR/.venv"
setup_venv() {
if [[ ! -d "$VENV_DIR" ]]; then
python3 -m venv "$VENV_DIR" >/dev/null 2>&1
"$VENV_DIR/bin/pip" install --upgrade pip >/dev/null 2>&1
"$VENV_DIR/bin/pip" install pillow screeninfo >/dev/null 2>&1
PYTHON_EXEC="$VENV_DIR/bin/python3"
if [[ ! -f "$PYTHON_EXEC" ]]; then
echo -e "${RED}Python executable not found in virtual environment.${RESET}"
exit 1
fi
else
PYTHON_EXEC="$VENV_DIR/bin/python3"
fi
}