Last active
December 13, 2016 07:15
-
-
Save watr/b27a4b523fd7e50903dde22bc0f68cfd to your computer and use it in GitHub Desktop.
print macOS binary's deployment target
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/sh | |
## usase: $ sh ./macos-deployment-targer.sh <path-to-binary> | |
path_to_binary="$1" | |
otool -lv "$path_to_binary" | grep -A 3 LC_VERSION_MIN_MACOSX | grep "version" | awk '{print $2;}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment