Skip to content

Commit

Permalink
GitHub Actions: macOS releases: Drop extra libgmp renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Jan 26, 2021
1 parent 9e5c5b6 commit 124fda4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/build-macos-release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
#!/bin/bash
set -eux

add_rpath()
{
Expand All @@ -13,7 +14,7 @@ fix_path()
NEW="$3"
OLD=$(otool -L "$BINARY" | grep "$MATCH" | awk '{print $1}')
install_name_tool -change "$OLD" "$NEW" "$BINARY"
cp -n "$OLD" "$(dirname "$BINARY")/$(basename "$NEW")"
cp -n "$OLD" "$(dirname "$BINARY")/$(basename "$NEW")" || true
}


Expand All @@ -25,7 +26,6 @@ BINARY="$BUILD/echidna-test"
add_rpath "$BINARY"
fix_path "$BINARY" libsecp256k1 "@rpath/libsecp256k1.dylib"
fix_path "$BINARY" libff "@rpath/libff.dylib"
fix_path "$BINARY" libgmp "@rpath/libgmp.dylib"
fix_path "$BUILD/libff.dylib" libgmp "@rpath/libgmp.dylib"
fix_path "$BUILD/libsecp256k1.dylib" libgmp "@rpath/libgmp.dylib"

Expand Down

0 comments on commit 124fda4

Please sign in to comment.