From ac414622ff95b365e0445e5a282cb2a30574f374 Mon Sep 17 00:00:00 2001 From: th3r00t Date: Fri, 8 Aug 2025 18:37:10 +0000 Subject: [PATCH] Fixing branch checkout --- install.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index cf14aae..2cc4cd5 100755 --- a/install.sh +++ b/install.sh @@ -1,10 +1,25 @@ #!/bin/sh +set -e # Exit on error + cd /tmp/ git clone https://github.com/th3r00t/pyShelf.git -cd pyshelf +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 -sudo cp ./src/frontend/static /var/lib/pyshelf/assets -r -sudo cp ./src/frontend/templates /var/lib/pyshelf/assets -r + +# 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 +