mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
fix tmp and install python
This commit is contained in:
parent
f2e2fa9c7f
commit
ac035a8e0b
1 changed files with 29 additions and 15 deletions
16
setup.sh
16
setup.sh
|
|
@ -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."
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue