Skip to content

Commit 07e7040

Browse files
committed
2 parents 24a0eac + 97ce1b4 commit 07e7040

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

scripts/macos-fix-openssl.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,11 @@ daemonctl_path="${app_path}/Contents/MacOS/codex_monitor_daemonctl"
5050
daemon_source="${DAEMON_BINARY_PATH:-src-tauri/target/release/codex_monitor_daemon}"
5151
daemonctl_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

7470
if [[ ! -f "${libssl}" || ! -f "${libcrypto}" ]]; then
7571
echo "OpenSSL dylibs not found at ${openssl_prefix}/lib"

0 commit comments

Comments
 (0)