Files
pyShelf/install.sh
2025-08-08 18:37:10 +00:00

26 lines
566 B
Bash
Executable File
Vendored

#!/bin/sh
set -e # Exit on error
cd /tmp/
git clone https://github.com/th3r00t/pyShelf.git
cd pyShelf
# Ensure the correct branch is checked out before installing dependencies
git fetch origin
git checkout 0.8.0--dev-zipapp
# Install dependencies in the correct branch context
uv sync
# Build the release
./build.sh
# Install assets
sudo mkdir -p /var/lib/pyshelf/assets
sudo cp -r ./src/frontend/static /var/lib/pyshelf/assets
sudo cp -r ./src/frontend/templates /var/lib/pyshelf/assets
# Install executable
sudo cp ./release/pyshelf /usr/local/bin/pyshelf