Add offline installation support with repo folder and updated dependencies
Features: - Create repo/ folder structure for offline packages - python-wheels/ for Python packages (.whl files) - system-packages/ for APT packages and .deb files - Add download_offline_packages.sh to populate Python wheels - Add download_deb_packages.sh to download system .deb packages - Update install.sh with smart online/offline detection - Auto-detects repo folder and uses offline packages - Falls back to online installation if repo is empty - Supports --offline flag for explicit offline mode - Update requirements.txt with async dependencies: - aiohttp==3.9.1 for async HTTP client - asyncio==3.4.3 for async I/O framework - Add OFFLINE_INSTALLATION.md with complete guide - Add .gitignore to exclude downloaded packages from repo - Document all system dependencies in apt-packages.txt Downloaded packages: - 18 Python wheels with all dependencies - Total size: ~50 MB for Python packages - Ready for offline deployment
This commit is contained in:
6
repo/.gitignore
vendored
Normal file
6
repo/.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# Ignore downloaded packages but keep directory structure
|
||||
repo/python-wheels/*.whl
|
||||
repo/python-wheels/*.tar.gz
|
||||
repo/system-packages/debs/
|
||||
!repo/python-wheels/.gitkeep
|
||||
!repo/system-packages/.gitkeep
|
||||
34
repo/README.md
Normal file
34
repo/README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Offline Installation Repository
|
||||
|
||||
This folder contains all necessary packages for offline installation of the Kivy Signage Player.
|
||||
|
||||
## Structure
|
||||
|
||||
- `python-wheels/` - Python packages (.whl files) for pip installation
|
||||
- `system-packages/` - System package information and .deb files
|
||||
|
||||
## Usage
|
||||
|
||||
The installer script (`install.sh`) will automatically use this repo folder if available.
|
||||
|
||||
### To populate this folder for offline installation:
|
||||
|
||||
Run the download script from the project root:
|
||||
```bash
|
||||
bash download_offline_packages.sh
|
||||
```
|
||||
|
||||
This will download all necessary Python wheels and document system packages.
|
||||
|
||||
## Contents
|
||||
|
||||
### Python Packages
|
||||
- kivy==2.1.0
|
||||
- requests==2.32.4
|
||||
- bcrypt==4.2.1
|
||||
- aiohttp==3.9.1
|
||||
- asyncio==3.4.3
|
||||
- All dependencies
|
||||
|
||||
### System Packages (APT)
|
||||
See `system-packages/apt-packages.txt` for the complete list.
|
||||
1
repo/python-wheels/.gitkeep
Normal file
1
repo/python-wheels/.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
# Keep this directory in git
|
||||
BIN
repo/python-wheels/Kivy-2.1.0.tar.gz
Normal file
BIN
repo/python-wheels/Kivy-2.1.0.tar.gz
Normal file
Binary file not shown.
BIN
repo/python-wheels/Kivy_Garden-0.1.5-py3-none-any.whl
Normal file
BIN
repo/python-wheels/Kivy_Garden-0.1.5-py3-none-any.whl
Normal file
Binary file not shown.
Binary file not shown.
BIN
repo/python-wheels/aiosignal-1.4.0-py3-none-any.whl
Normal file
BIN
repo/python-wheels/aiosignal-1.4.0-py3-none-any.whl
Normal file
Binary file not shown.
BIN
repo/python-wheels/asyncio-3.4.3-py3-none-any.whl
Normal file
BIN
repo/python-wheels/asyncio-3.4.3-py3-none-any.whl
Normal file
Binary file not shown.
BIN
repo/python-wheels/attrs-25.4.0-py3-none-any.whl
Normal file
BIN
repo/python-wheels/attrs-25.4.0-py3-none-any.whl
Normal file
Binary file not shown.
Binary file not shown.
BIN
repo/python-wheels/certifi-2025.10.5-py3-none-any.whl
Normal file
BIN
repo/python-wheels/certifi-2025.10.5-py3-none-any.whl
Normal file
Binary file not shown.
Binary file not shown.
BIN
repo/python-wheels/docutils-0.22.2-py3-none-any.whl
Normal file
BIN
repo/python-wheels/docutils-0.22.2-py3-none-any.whl
Normal file
Binary file not shown.
Binary file not shown.
BIN
repo/python-wheels/idna-3.11-py3-none-any.whl
Normal file
BIN
repo/python-wheels/idna-3.11-py3-none-any.whl
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
repo/python-wheels/pygments-2.19.2-py3-none-any.whl
Normal file
BIN
repo/python-wheels/pygments-2.19.2-py3-none-any.whl
Normal file
Binary file not shown.
BIN
repo/python-wheels/requests-2.32.4-py3-none-any.whl
Normal file
BIN
repo/python-wheels/requests-2.32.4-py3-none-any.whl
Normal file
Binary file not shown.
BIN
repo/python-wheels/typing_extensions-4.15.0-py3-none-any.whl
Normal file
BIN
repo/python-wheels/typing_extensions-4.15.0-py3-none-any.whl
Normal file
Binary file not shown.
BIN
repo/python-wheels/urllib3-2.5.0-py3-none-any.whl
Normal file
BIN
repo/python-wheels/urllib3-2.5.0-py3-none-any.whl
Normal file
Binary file not shown.
Binary file not shown.
1
repo/system-packages/.gitkeep
Normal file
1
repo/system-packages/.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
# Keep this directory in git
|
||||
39
repo/system-packages/apt-packages.txt
Normal file
39
repo/system-packages/apt-packages.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
# System packages required for Kivy Signage Player
|
||||
# Install with: sudo apt install -y $(cat apt-packages.txt)
|
||||
|
||||
# Python and build tools
|
||||
python3-pip
|
||||
python3-setuptools
|
||||
python3-dev
|
||||
|
||||
# SDL2 libraries for Kivy
|
||||
libsdl2-dev
|
||||
libsdl2-image-dev
|
||||
libsdl2-mixer-dev
|
||||
libsdl2-ttf-dev
|
||||
|
||||
# Multimedia libraries
|
||||
libportmidi-dev
|
||||
libswscale-dev
|
||||
libavformat-dev
|
||||
libavcodec-dev
|
||||
|
||||
# Compression
|
||||
zlib1g-dev
|
||||
|
||||
# Video playback
|
||||
ffmpeg
|
||||
libavcodec-extra
|
||||
|
||||
# Audio support
|
||||
gstreamer1.0-plugins-base
|
||||
gstreamer1.0-plugins-good
|
||||
gstreamer1.0-plugins-bad
|
||||
gstreamer1.0-alsa
|
||||
|
||||
# Network tools
|
||||
wget
|
||||
curl
|
||||
|
||||
# Additional video codecs
|
||||
libx264-dev
|
||||
Reference in New Issue
Block a user