Added -q/--quick-build option to do only the go

Also fixed the typo in building development not honoring the SKIP_UI_BUILD request.
This commit is contained in:
Marc Brooks 2025-11-20 13:32:29 -06:00
parent b9dbe86d03
commit 4f5fbed23b
No known key found for this signature in database
GPG Key ID: 583A6AF2D6AE1DC6
1 changed files with 21 additions and 3 deletions

View File

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