File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,15 +50,11 @@ daemonctl_path="${app_path}/Contents/MacOS/codex_monitor_daemonctl"
5050daemon_source=" ${DAEMON_BINARY_PATH:- src-tauri/ target/ release/ codex_monitor_daemon} "
5151daemonctl_source=" ${DAEMONCTL_BINARY_PATH:- src-tauri/ target/ release/ codex_monitor_daemonctl} "
5252
53- copy_if_missing () {
53+ sync_embedded_binary () {
5454 local source_path=" $1 "
5555 local destination_path=" $2 "
5656 local label=" $3 "
5757
58- if [[ -f " ${destination_path} " ]]; then
59- return
60- fi
61-
6258 if [[ -f " ${source_path} " ]]; then
6359 cp -f " ${source_path} " " ${destination_path} "
6460 chmod +x " ${destination_path} "
@@ -68,8 +64,8 @@ copy_if_missing() {
6864 fi
6965}
7066
71- copy_if_missing " ${daemon_source} " " ${daemon_path} " " daemon"
72- copy_if_missing " ${daemonctl_source} " " ${daemonctl_path} " " daemonctl"
67+ sync_embedded_binary " ${daemon_source} " " ${daemon_path} " " daemon"
68+ sync_embedded_binary " ${daemonctl_source} " " ${daemonctl_path} " " daemonctl"
7369
7470if [[ ! -f " ${libssl} " || ! -f " ${libcrypto} " ]]; then
7571 echo " OpenSSL dylibs not found at ${openssl_prefix} /lib"
You can’t perform that action at this time.
0 commit comments