mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Created install.sh and pyshelf.sh
Also refactored methods to work as a zipapp
This commit is contained in:
6
pyshelf.sh
vendored
6
pyshelf.sh
vendored
@@ -2,15 +2,15 @@
|
|||||||
# This script is used to run the pyshelf application.
|
# This script is used to run the pyshelf application.
|
||||||
# It sets up the environment and runs the main script.
|
# It sets up the environment and runs the main script.
|
||||||
# first we need to activate the virtual environment
|
# first we need to activate the virtual environment
|
||||||
if [ -d ".venv" ]; then
|
if [ -d "/etc/pyShelf/.venv" ]; then
|
||||||
source .venv/bin/activate
|
source /etc/pyShelf/.venv/bin/activate
|
||||||
else
|
else
|
||||||
echo "Virtual environment not found. Please create it first."
|
echo "Virtual environment not found. Please create it first."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# then we need to run the main script
|
# then we need to run the main script
|
||||||
if [ -f "release/pyshelf" ]; then
|
if [ -f "release/pyshelf" ]; then
|
||||||
./release/pyshelf
|
sudo -u pyshelf /etc/pyShelf/release/pyshelf
|
||||||
else
|
else
|
||||||
echo "Main script not found. Please check the directory."
|
echo "Main script not found. Please check the directory."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
3
src/frontend/static/styles/pyShelf.sass
vendored
3
src/frontend/static/styles/pyShelf.sass
vendored
@@ -153,7 +153,8 @@ $footer-background-color: $ps-color-primary-trans !important
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
|
||||||
@import "../../node_modules/bulma/bulma.scss"
|
// @import "../../node_modules/bulma/bulma.scss"
|
||||||
|
@use "bulma/bulma.sass";
|
||||||
|
|
||||||
.container-full
|
.container-full
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user