improve: add --main as primary option for building from source

- --main is now the primary option (clearer intent)
- --source, --from-source, --branch remain as aliases
- Help text shows --main first for better discoverability

Usage: curl -fsSL https://raw.githubusercontent.com/rcourtman/Pulse/main/install.sh | bash -s -- --main
This commit is contained in:
Pulse Monitor
2025-09-11 15:16:40 +00:00
parent ac3e1eaacb
commit 43b634f654
+2 -1
View File
@@ -2251,7 +2251,7 @@ while [[ $# -gt 0 ]]; do
ENABLE_AUTO_UPDATES=true
shift
;;
--source|--from-source|--branch)
--main|--source|--from-source|--branch)
BUILD_FROM_SOURCE=true
# Optional: specify branch
if [[ -n "$2" ]] && [[ ! "$2" =~ ^-- ]]; then
@@ -2269,6 +2269,7 @@ while [[ $# -gt 0 ]]; do
echo " --rc, --pre Install latest RC/pre-release version"
echo " --stable Install latest stable version (default)"
echo " --version VERSION Install specific version (e.g., v4.4.0-rc.1)"
echo " --main Build and install from main branch source"
echo " --source [BRANCH] Build and install from source (default: main)"
echo " --enable-auto-updates Enable automatic stable updates (via systemd timer)"
echo ""