Skip to content

Commit 4f5fbed

Browse files
committed
Added -q/--quick-build option to do only the go
Also fixed the typo in building development not honoring the SKIP_UI_BUILD request.
1 parent b9dbe86 commit 4f5fbed

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

scripts/dev_deploy.sh

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ show_help() {
1414
echo " -u, --user <remote_user> Remote username (default: root)"
1515
echo " --gdb-port <port> GDB debug port (default: 2345)"
1616
echo " --run-go-tests Run go tests"
17-
echo " --run-go-tests-only Run go tests and exit"
17+
echo " -t, --run-go-tests-only Run go tests and exit"
1818
echo " --skip-ui-build Skip frontend/UI build"
19+
echo " -ui, --build-ui Force frontend/UI build"
1920
echo " --skip-native-build Skip native build"
21+
echo " -n, --build-native Force native build"
2022
echo " --disable-docker Disable docker build"
2123
echo " --enable-sync-trace Enable sync trace (do not use in release builds)"
2224
echo " --native-binary Build and deploy the native binary (FOR DEBUGGING ONLY)"
2325
echo " -i, --install Build for release and install the app"
26+
echo " -q, --quick-build Do quick build (only rebuild go components)"
2427
echo " --help Display this help message"
2528
echo
2629
echo "Example:"
@@ -91,10 +94,18 @@ while [[ $# -gt 0 ]]; do
9194
SKIP_UI_BUILD=true
9295
shift
9396
;;
97+
-ui|--build-ui)
98+
SKIP_UI_BUILD=false
99+
shift
100+
;;
94101
--skip-native-build)
95102
SKIP_NATIVE_BUILD=1
96103
shift
97104
;;
105+
-n|--build-native)
106+
SKIP_NATIVE_BUILD=0
107+
shift
108+
;;
98109
--reset-usb-hid)
99110
RESET_USB_HID_DEVICE=true
100111
shift
@@ -116,7 +127,7 @@ while [[ $# -gt 0 ]]; do
116127
RUN_GO_TESTS=true
117128
shift
118129
;;
119-
--run-go-tests-only)
130+
-t|--run-go-tests-only)
120131
RUN_GO_TESTS_ONLY=true
121132
RUN_GO_TESTS=true
122133
shift
@@ -129,6 +140,13 @@ while [[ $# -gt 0 ]]; do
129140
INSTALL_APP=true
130141
shift
131142
;;
143+
-q|--quick-build)
144+
SKIP_NATIVE_BUILD=1
145+
SKIP_UI_BUILD=true
146+
BUILD_NATIVE_BINARY=false
147+
RUN_GO_TESTS=false
148+
shift
149+
;;
132150
--help)
133151
show_help
134152
exit 0
@@ -274,7 +292,7 @@ else
274292
msg_info "▶ Building development binary"
275293
do_make build_dev \
276294
SKIP_NATIVE_IF_EXISTS=${SKIP_NATIVE_BUILD} \
277-
SKIP_UI_BUILD=${SKIP_UI_BUILD_RELEASE} \
295+
SKIP_UI_BUILD=${SKIP_UI_BUILD} \
278296
ENABLE_SYNC_TRACE=${ENABLE_SYNC_TRACE}
279297

280298
# Kill any existing instances of the application

0 commit comments

Comments
 (0)