mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 07:18:47 +00:00
Default to GUI install with opt-out flag
This commit is contained in:
@@ -17,7 +17,7 @@ VENV_DIR="$INSTALL_DIR/venv"
|
|||||||
LAUNCHER_DIR="$HOME/.local/bin"
|
LAUNCHER_DIR="$HOME/.local/bin"
|
||||||
LAUNCHER_PATH="$LAUNCHER_DIR/seedpass"
|
LAUNCHER_PATH="$LAUNCHER_DIR/seedpass"
|
||||||
BRANCH="main" # Default branch
|
BRANCH="main" # Default branch
|
||||||
INSTALL_GUI=false
|
INSTALL_GUI=true
|
||||||
|
|
||||||
# --- Helper Functions ---
|
# --- Helper Functions ---
|
||||||
print_info() { echo -e "\033[1;34m[INFO]\033[0m" "$1"; }
|
print_info() { echo -e "\033[1;34m[INFO]\033[0m" "$1"; }
|
||||||
@@ -59,9 +59,9 @@ install_dependencies() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: $0 [-b | --branch <branch_name>] [--with-gui] [-h | --help]"
|
echo "Usage: $0 [-b | --branch <branch_name>] [--no-gui] [-h | --help]"
|
||||||
echo " -b, --branch Specify the git branch to install (default: main)"
|
echo " -b, --branch Specify the git branch to install (default: main)"
|
||||||
echo " --with-gui Include graphical interface dependencies"
|
echo " --no-gui Skip graphical interface dependencies (default: include GUI)"
|
||||||
echo " -h, --help Display this help message"
|
echo " -h, --help Display this help message"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
@@ -82,8 +82,8 @@ main() {
|
|||||||
-h|--help)
|
-h|--help)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
--with-gui)
|
--no-gui)
|
||||||
INSTALL_GUI=true
|
INSTALL_GUI=false
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Reference in New Issue
Block a user