diff --git a/contrib/build-linux/appimage/make_appimage.sh b/contrib/build-linux/appimage/make_appimage.sh index 471b229a1..a1031eab2 100755 --- a/contrib/build-linux/appimage/make_appimage.sh +++ b/contrib/build-linux/appimage/make_appimage.sh @@ -78,7 +78,7 @@ info "installing python." ) -if [ -f "$DLL_TARGET_DIR/libsecp256k1.so.2" ]; then +if ls "$DLL_TARGET_DIR"/libsecp256k1.so.* 1> /dev/null 2>&1; then info "libsecp256k1 already built, skipping" else "$CONTRIB"/make_libsecp256k1.sh || fail "Could not build libsecp" diff --git a/contrib/build-wine/make_win.sh b/contrib/build-wine/make_win.sh index 5a13ea744..13ee21d90 100755 --- a/contrib/build-wine/make_win.sh +++ b/contrib/build-wine/make_win.sh @@ -43,7 +43,7 @@ rm "$here"/dist/* -rf mkdir -p "$CACHEDIR" "$DLL_TARGET_DIR" "$PIP_CACHE_DIR" -if [ -f "$DLL_TARGET_DIR/libsecp256k1-2.dll" ]; then +if ls "$DLL_TARGET_DIR"/libsecp256k1-*.dll 1> /dev/null 2>&1; then info "libsecp256k1 already built, skipping" else "$CONTRIB"/make_libsecp256k1.sh || fail "Could not build libsecp" diff --git a/contrib/osx/make_osx.sh b/contrib/osx/make_osx.sh index 66bf9a40a..3b223059c 100755 --- a/contrib/osx/make_osx.sh +++ b/contrib/osx/make_osx.sh @@ -145,11 +145,11 @@ info "preparing electrum-locale." ) || fail "failed generating locale" -if [ ! -f "$DLL_TARGET_DIR/libsecp256k1.2.dylib" ]; then +if ls "$DLL_TARGET_DIR"/libsecp256k1.*.dylib 1> /dev/null 2>&1; then + info "libsecp256k1 already built, skipping" +else info "Building libsecp256k1 dylib..." "$CONTRIB"/make_libsecp256k1.sh || fail "Could not build libsecp" -else - info "Skipping libsecp256k1 build: reusing already built dylib." fi #cp -f "$DLL_TARGET_DIR"/libsecp256k1.*.dylib "$PROJECT_ROOT/electrum" || fail "Could not copy libsecp256k1 dylib"