From f4a86a2d11e07c269885836c312737526c6c4f68 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Tue, 25 Feb 2025 16:12:04 +0100 Subject: [PATCH] feat(dev): Add option to skip frontend build in dev_deploy.sh (#183) --- dev_deploy.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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