From 3958913d4b421cabfd96cc8dc2d272547b63e9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Sun, 22 Nov 2020 19:11:18 -0300 Subject: [PATCH] GitHub Actions: macOS releases: Drop extra libgmp renaming --- .github/scripts/build-macos-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/build-macos-release.sh b/.github/scripts/build-macos-release.sh index 817d8b422..3e1f1b366 100755 --- a/.github/scripts/build-macos-release.sh +++ b/.github/scripts/build-macos-release.sh @@ -1,4 +1,5 @@ -#!/bin/sh +#!/bin/bash +set -eux add_rpath() { @@ -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 } @@ -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"