Skip to content

Commit bbcfab4

Browse files
committed
Update macos-fix-openssl.sh
1 parent e2bb6c1 commit bbcfab4

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

scripts/macos-fix-openssl.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ libssl="${openssl_prefix}/lib/libssl.3.dylib"
3636
libcrypto="${openssl_prefix}/lib/libcrypto.3.dylib"
3737
frameworks_dir="${app_path}/Contents/Frameworks"
3838
bin_path="${app_path}/Contents/MacOS/codex-monitor"
39+
daemon_path="${app_path}/Contents/MacOS/codex_monitor_daemon"
3940

4041
if [[ ! -f "${libssl}" || ! -f "${libcrypto}" ]]; then
4142
echo "OpenSSL dylibs not found at ${openssl_prefix}/lib"
@@ -78,8 +79,12 @@ if ! otool -l "${bin_path}" | { command -v rg >/dev/null 2>&1 && rg -q "@executa
7879
install_name_tool -add_rpath "@executable_path/../Frameworks" "${bin_path}"
7980
fi
8081

81-
codesign --force --options runtime --sign "${identity}" "${frameworks_dir}/libcrypto.3.dylib"
82-
codesign --force --options runtime --sign "${identity}" "${frameworks_dir}/libssl.3.dylib"
83-
codesign --force --options runtime --sign "${identity}" "${app_path}"
82+
codesign --force --options runtime --timestamp --sign "${identity}" "${frameworks_dir}/libcrypto.3.dylib"
83+
codesign --force --options runtime --timestamp --sign "${identity}" "${frameworks_dir}/libssl.3.dylib"
84+
codesign --force --options runtime --timestamp --sign "${identity}" "${bin_path}"
85+
if [[ -f "${daemon_path}" ]]; then
86+
codesign --force --options runtime --timestamp --sign "${identity}" "${daemon_path}"
87+
fi
88+
codesign --force --options runtime --timestamp --sign "${identity}" "${app_path}"
8489

8590
echo "Bundled OpenSSL dylibs and re-signed ${app_path}"

0 commit comments

Comments
 (0)