17 lines
437 B
Bash
17 lines
437 B
Bash
#!/bin/bash
|
|
# DeadQR Launcher - Sets up venv and runs the tool
|
|
|
|
VENV_DIR="$HOME/.qr_generator_venv"
|
|
|
|
# Create venv if it doesn't exist
|
|
if [ ! -d "$VENV_DIR" ]; then
|
|
echo "Setting up DeadQR (first time only)..."
|
|
python3 -m venv "$VENV_DIR"
|
|
"$VENV_DIR/bin/pip" install --upgrade pip
|
|
"$VENV_DIR/bin/pip" install qrcode[pil] pillow
|
|
echo "Setup complete!"
|
|
fi
|
|
|
|
# Run the tool
|
|
"$VENV_DIR/bin/python" "$HOME/qr_generator.py"
|