File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ libssl="${openssl_prefix}/lib/libssl.3.dylib"
3636libcrypto=" ${openssl_prefix} /lib/libcrypto.3.dylib"
3737frameworks_dir=" ${app_path} /Contents/Frameworks"
3838bin_path=" ${app_path} /Contents/MacOS/codex-monitor"
39+ daemon_path=" ${app_path} /Contents/MacOS/codex_monitor_daemon"
3940
4041if [[ ! -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} "
7980fi
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
8590echo " Bundled OpenSSL dylibs and re-signed ${app_path} "
You can’t perform that action at this time.
0 commit comments