diff --git a/scripts/dev_deploy.sh b/scripts/dev_deploy.sh index 96e7cf60..710f816c 100755 --- a/scripts/dev_deploy.sh +++ b/scripts/dev_deploy.sh @@ -14,13 +14,16 @@ show_help() { echo " -u, --user Remote username (default: root)" echo " --gdb-port GDB debug port (default: 2345)" echo " --run-go-tests Run go tests" - echo " --run-go-tests-only Run go tests and exit" + echo " -t, --run-go-tests-only Run go tests and exit" echo " --skip-ui-build Skip frontend/UI build" + echo " -ui, --build-ui Force frontend/UI build" echo " --skip-native-build Skip native build" + echo " -n, --build-native Force native build" echo " --disable-docker Disable docker build" echo " --enable-sync-trace Enable sync trace (do not use in release builds)" echo " --native-binary Build and deploy the native binary (FOR DEBUGGING ONLY)" echo " -i, --install Build for release and install the app" + echo " -q, --quick-build Do quick build (only rebuild go components)" echo " --help Display this help message" echo echo "Example:" @@ -91,10 +94,18 @@ while [[ $# -gt 0 ]]; do SKIP_UI_BUILD=true shift ;; + -ui|--build-ui) + SKIP_UI_BUILD=false + shift + ;; --skip-native-build) SKIP_NATIVE_BUILD=1 shift ;; + -n|--build-native) + SKIP_NATIVE_BUILD=0 + shift + ;; --reset-usb-hid) RESET_USB_HID_DEVICE=true shift @@ -116,7 +127,7 @@ while [[ $# -gt 0 ]]; do RUN_GO_TESTS=true shift ;; - --run-go-tests-only) + -t|--run-go-tests-only) RUN_GO_TESTS_ONLY=true RUN_GO_TESTS=true shift @@ -129,6 +140,13 @@ while [[ $# -gt 0 ]]; do INSTALL_APP=true shift ;; + -q|--quick-build) + SKIP_NATIVE_BUILD=1 + SKIP_UI_BUILD=true + BUILD_NATIVE_BINARY=false + RUN_GO_TESTS=false + shift + ;; --help) show_help exit 0 @@ -274,7 +292,7 @@ else msg_info "▶ Building development binary" do_make build_dev \ SKIP_NATIVE_IF_EXISTS=${SKIP_NATIVE_BUILD} \ - SKIP_UI_BUILD=${SKIP_UI_BUILD_RELEASE} \ + SKIP_UI_BUILD=${SKIP_UI_BUILD} \ ENABLE_SYNC_TRACE=${ENABLE_SYNC_TRACE} # Kill any existing instances of the application