Created
October 22, 2012 05:44
-
-
Save hirofumi/3929892 to your computer and use it in GitHub Desktop.
find binary by build identifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
name=your-app-name | |
for app in your-archives-directory-pattern/*.xcarchive/Products/Applications/$name.app; do | |
if dwarfdump -u "$app/$name" | tr '[:upper:]' '[:lower:]' | tr -d '-' | grep "$1"; then | |
echo $app | |
exit | |
fi | |
done | |
for job in "your" "jenkins" "job" "names"; do | |
for ipa in your-jenkins-home/jobs/$job/builds/<->/**/*.ipa; do | |
unzip -p "$ipa" "Payload/$name.app/$name" > "$TMPDIR/$name" | |
if dwarfdump -u "$TMPDIR/$name" | tr '[:upper:]' '[:lower:]' | tr -d '-' | grep "$1"; then | |
echo $ipa | |
rm "$TMPDIR/$name" | |
exit | |
else | |
rm "$TMPDIR/$name" | |
fi | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment