mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Fixing branch checkout
This commit is contained in:
21
install.sh
vendored
21
install.sh
vendored
@@ -1,10 +1,25 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e # Exit on error
|
||||||
|
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
git clone https://github.com/th3r00t/pyShelf.git
|
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
|
git checkout 0.8.0--dev-zipapp
|
||||||
|
|
||||||
|
# Install dependencies in the correct branch context
|
||||||
uv sync
|
uv sync
|
||||||
|
|
||||||
|
# Build the release
|
||||||
./build.sh
|
./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
|
sudo cp ./release/pyshelf /usr/local/bin/pyshelf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user