mirror of
https://github.com/seemoo-lab/openhaystack.git
synced 2026-05-06 00:26:36 +00:00
Initial commit
This commit is contained in:
14
OpenHaystack/Resources/codesign_offline_finder.sh
Executable file
14
OpenHaystack/Resources/codesign_offline_finder.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#bin/sh
|
||||
identities=$(security find-identity -p codesigning -v)
|
||||
#echo "${identities}"
|
||||
pat=' ([0-9ABCDEF]+) '
|
||||
[[ $identities =~ $pat ]]
|
||||
# Can be set to a codesign identity manually
|
||||
IDT="${BASH_REMATCH[1]}"
|
||||
if [ -z ${IDT+x} ]; then
|
||||
echo error: "error: Please set the codesigning identity above. \nThe identity can be found with $ security find-identities -v -p codesigning"
|
||||
else
|
||||
codesign --entitlements ${SRCROOT}/OpenHaystack/OfflineFinder.entitlements -fs ${IDT} ${TARGET_BUILD_DIR}/OfflineFinder.app/Contents/MacOS/OfflineFinder
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user