fix tmp and install python

This commit is contained in:
Chris Frankland-Wright 2025-08-30 22:27:28 +01:00
parent f2e2fa9c7f
commit ac035a8e0b

View file

@ -57,6 +57,18 @@ elif [ "$PKG_MANAGER" == "pacman" ]; then
fi fi
echo "Common build dependencies installed." echo "Common build dependencies installed."
# --- Install Python dependencies for testing ---
echo "🐍 Installing Python dependencies for test scripts..."
if [ "$PKG_MANAGER" == "apt" ]; then
sudo apt install -y python3 python3-pip
elif [ "$PKG_MANAGER" == "dnf" ]; then
sudo dnf install -y python3 python3-pip
elif [ "$PKG_MANAGER" == "pacman" ]; then
sudo pacman -Sy --noconfirm python python-pip
fi
sudo pip3 install pyserial
echo "✅ Python dependencies installed."
# --- Apply custom splash screen --- # --- Apply custom splash screen ---
if [[ "$(uname)" == "Linux" ]]; then if [[ "$(uname)" == "Linux" ]]; then
echo "🖼️ Applying custom splash screen..." echo "🖼️ Applying custom splash screen..."
@ -137,6 +149,8 @@ if [ "$PKG_MANAGER" == "apt" ]; then
BUILD_DIR=$(mktemp -d) BUILD_DIR=$(mktemp -d)
git clone https://github.com/nodogsplash/nodogsplash.git "$BUILD_DIR" git clone https://github.com/nodogsplash/nodogsplash.git "$BUILD_DIR"
# Run the build in a subshell to isolate the directory change
(
cd "$BUILD_DIR" cd "$BUILD_DIR"
make make
sudo make install sudo make install
@ -151,9 +165,9 @@ if [ "$PKG_MANAGER" == "apt" ]; then
else else
echo "⚠️ Warning: nodogsplash.service file not found in source. Cannot set up as a service." echo "⚠️ Warning: nodogsplash.service file not found in source. Cannot set up as a service."
fi fi
)
# Clean up the build directory # Clean up the build directory
cd ..
sudo rm -rf "$BUILD_DIR" sudo rm -rf "$BUILD_DIR"
echo "✅ nodogsplash installed successfully." echo "✅ nodogsplash installed successfully."