Skip to content

Commit

Permalink
Grep the right pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
bredelings committed Jun 21, 2024
1 parent f8654d7 commit e9b964b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,7 @@ jobs:
run: |
brew install findutils file-formula
OUTPUT=$HOME/local
file --help
gfind ${OUTPUT} -type f -executable -exec file --mime-type '{}' \;
for exe in $(gfind ${OUTPUT} -type f -executable -exec file --mime-type '{}' \; | grep charset=binary | sed 's/: application.*//') ; do
for exe in $(gfind ${OUTPUT} -type f -executable -exec file --mime-type '{}' \; | grep x-mach-binary | sed 's/: application.*//') ; do
echo codesign -s - ${exe}
codesign -s - ${exe}
done
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ jobs:
- name: Ad hoc sign Mac executables
if: runner.os == 'macOS'
run: |
brew install findutils
brew install findutils file-formula
OUTPUT=$HOME/local
for exe in $(gfind ${OUTPUT} -type f -executable -exec file -i '{}' \; | grep charset=binary | sed 's/: application.*//') ; do
for exe in $(gfind ${OUTPUT} -type f -executable -exec file --mime-type '{}' \; | grep x-mach-binary | sed 's/: application.*//') ; do
echo codesign -s - ${exe}
codesign -s - ${exe}
done
Expand Down

0 comments on commit e9b964b

Please sign in to comment.