Created install.sh and pyshelf.sh

Also refactored methods to work as a zipapp
This commit is contained in:
2025-08-08 20:46:12 +00:00
parent 1c0ec33841
commit 4918c40d54
2 changed files with 46 additions and 6 deletions

17
pyshelf.sh vendored Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/sh
# This script is used to run the pyshelf application.
# It sets up the environment and runs the main script.
# first we need to activate the virtual environment
if [ -d ".venv" ]; then
source venv/bin/activate
else
echo "Virtual environment not found. Please create it first."
exit 1
fi
# then we need to run the main script
if [ -f "release/pyshelf" ]; then
./release/pyshelf
else
echo "Main script not found. Please check the directory."
exit 1
fi