#!/bin/bash # Dedicated Offline Installer for 32-bit Raspberry Pi OS (armv7l) set -e echo "=================================" echo " TKINTER PLAYER 32-BIT INSTALL " echo "=================================" # 1. Check architecture ARCH=$(uname -m) echo "Architecture: $ARCH" if [ "$ARCH" != "armv7l" ]; then echo "ERROR: This script is for 32-bit Raspberry Pi OS (armv7l) only!" exit 1 fi # 2. Check library folder LIBS_FOLDER="req_libraries_32bit" if [ ! -d "$LIBS_FOLDER" ]; then echo "ERROR: $LIBS_FOLDER not found!" exit 1 fi echo "Library folder: $LIBS_FOLDER" WHEEL_COUNT=$(ls $LIBS_FOLDER/*.whl | wc -l) echo "Wheel files: $WHEEL_COUNT" # 3. Create .venv echo "Creating .venv..." python3 -m venv .venv # 4. Activate environment source .venv/bin/activate # 5. Upgrade pip pip install --upgrade pip # 6. Install packages offline pip install --no-index --no-deps --find-links $LIBS_FOLDER/ $LIBS_FOLDER/*.whl echo "" echo "✅ 32-bit installation completed!" echo "" echo "Next steps:" echo "1. source .venv/bin/activate" echo "2. ./run_app.sh"