Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
iOS-run-macOS-executables-tools/resign_any_executable/build.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
19 lines (19 sloc)
441 Bytes
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 | |
| set -e | |
| lipo -thin arm64e -output "$2" "$1" | |
| chmod +w "$2" | |
| [[ -e "$2.entitlement" ]] || codesign -d --entitlement "$2.entitlement" "$2" | |
| python3 set_to_arm64.py "$2" | |
| if [[ -s "$2.entitlement" ]] | |
| then | |
| codesign --force \ | |
| --sign 52F754C59CFAC59BC5794F5A3B523EFE0667D7EB \ | |
| --timestamp=none \ | |
| --entitlement "$2.entitlement" \ | |
| "$2" | |
| else | |
| codesign --force \ | |
| --sign 52F754C59CFAC59BC5794F5A3B523EFE0667D7EB \ | |
| --timestamp=none \ | |
| "$2" | |
| fi |