Clean up project: Remove test files and add dedicated 32-bit installer
- Remove temporary test files (test_*.py) - Remove unused installation scripts - Add install_32bit.sh for dedicated 32-bit Raspberry Pi OS installation - Clean up repository structure for production deployment
This commit is contained in:
47
install_32bit.sh
Executable file
47
install_32bit.sh
Executable file
@@ -0,0 +1,47 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user