From f2459952a7cd1eaba6ec80a8836a09e656741d90 Mon Sep 17 00:00:00 2001 From: Tyler Porter Date: Sun, 3 Nov 2024 21:22:21 -0500 Subject: [PATCH] Allow selection of driver version and set 14ab2ff as current default Make the driver version a cmd line flag instead of config Update README driver text Actually do the checkout --- README.md | 27 +++++++++++++++------------ install.sh | 55 +++++++++++++++++++++++++++++++----------------------- 2 files changed, 47 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 94b8f16a..26a8a7a4 100755 --- a/README.md +++ b/README.md @@ -135,26 +135,29 @@ It will also install the following python libraries that are required for certai * [MLB-StatsAPI](https://pypi.org/project/MLB-StatsAPI/): The main library that fetches and parses all of the actual MLB data being displayed * [RGBMatrixEmulator](https://github.com/ty-porter/RGBMatrixEmulator): The emulation library for the matrix display. Useful for running on MacOS or Linux, or for development. -#### Installation on Non-Raspberry Pi Hardware +#### Customizing the Installation -The installation script is designed for physical hardware. When attempting to install it on other platforms, you should not use `sudo` to install the dependencies. In addition, you can pass the `--emulator-only` argument to skip installation steps that aren't required. +Additional flags are available for customizing your install: ``` -sh install.sh --emulator-only -``` +-a, --skip-all Skip all dependencies and config installation (equivalent to -c -p -m). +-c, --skip-config Skip updating JSON configuration files. +-m, --skip-matrix Skip building matrix driver dependency. Video display will default to emulator mode. +-p, --skip-python Skip Python 3 installation. Requires manual Python 3 setup if not already installed. -Additional flags are available for customizing your install: +-v, --no-venv Do not create a virtual environment for the dependencies. +-e, --emulator-only Do not install dependencies under sudo. Skips building matrix dependencies (equivalent to -m) +-d, --driver Specify a branch name or commit SHA for the rpi-rgb-led-matrix library. (Optional. Defaults may change.) +-h, --help Display this help message ``` --p, --skip-python Skips Python 3 installation. You will need to install it via your platform's appropriate package manager. --m, --skip-matrix Skips RPI-specific matrix driver installation and build. --c, --skip-config Skips default config overwrite without prompting. --a, --skip-all Performs all above skips. ---no-venv Do not create a virtual environment for the dependencies. ---emulator-only Do not install dependencies under sudo. Skips building matrix dependencies. +#### Installation on Non-Raspberry Pi Hardware + +The installation script is designed for physical hardware. When attempting to install it on other platforms, you should not use `sudo` to install the dependencies. In addition, you can pass the `--emulator-only` argument to skip installation steps that aren't required. --h, --help Displays help +``` +sh install.sh --emulator-only ``` #### Updating diff --git a/install.sh b/install.sh index b9563b98..d442221b 100755 --- a/install.sh +++ b/install.sh @@ -1,58 +1,65 @@ #!/bin/bash +SKIP_PYTHON=false +SKIP_CONFIG=false +SKIP_MATRIX=false +NO_SUDO=false +SKIP_VENV=false +DRIVER_SHA=14ab2ff + usage() { cat <