mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
The problem is that with a bad internet connection there is a very high probability that “codesign --deep” will fail due to having to contact the timestamp server for each embedded executable object. Long-term we probably want to sign the sub-targets as they are produced and/or link the entire thing together so that there is only a single sign target (plus embedded plug-ins).
13 lines
251 B
Bash
Executable File
13 lines
251 B
Bash
Executable File
#!/bin/bash
|
|
|
|
identity=$1
|
|
app_path=$2
|
|
|
|
until codesign -fs "${identity}" "${app_path}"; do
|
|
for lib in "${app_path}"/Contents/{Frameworks/*.{framework,dylib},PlugIns/*.tmplugin}; do
|
|
codesign --timestamp=none -s "${identity}" "${lib}"
|
|
done
|
|
done
|
|
|
|
true
|