diff --git a/dev_deploy.sh b/dev_deploy.sh index c5a389e..7fbf29e 100755 --- a/dev_deploy.sh +++ b/dev_deploy.sh @@ -10,6 +10,7 @@ show_help() { echo echo "Optional:" echo " -u, --user Remote username (default: root)" + echo " --skip-ui-build Skip frontend/UI build" echo " --help Display this help message" echo echo "Example:" @@ -21,6 +22,7 @@ show_help() { # Default values REMOTE_USER="root" REMOTE_PATH="/userdata/jetkvm/bin" +SKIP_UI_BUILD=false # Parse command line arguments while [[ $# -gt 0 ]]; do @@ -33,6 +35,10 @@ while [[ $# -gt 0 ]]; do REMOTE_USER="$2" shift 2 ;; + --skip-ui-build) + SKIP_UI_BUILD=true + shift + ;; --help) show_help exit 0 @@ -52,7 +58,9 @@ if [ -z "$REMOTE_HOST" ]; then fi # Build the development version on the host -make frontend +if [ "$SKIP_UI_BUILD" = false ]; then + make frontend +fi make build_dev # Change directory to the binary output directory