Skip to content

Commit

Permalink
Fix for dmg build scripts (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgriffin authored Jan 1, 2025
1 parent 9cdeebc commit 1000a00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/build-mac/apply_sigs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ CP=gcp

UNSIGNED="$1"
SIGNATURE="$2"
ARCH=x86_64
ARCH=$(uname -m)
OUTDIR="/tmp/bitcoin_safe_compare_dmg/signed_app"

if [ -z "$UNSIGNED" ]; then
Expand Down
5 changes: 3 additions & 2 deletions tools/build-mac/make_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export CFLAGS="-g0"

# Do not build universal binaries. The default on macos 11+ and xcode 12+ is "-arch arm64 -arch x86_64"
# but with that e.g. "hid.cpython-310-darwin.so" is not reproducible as built by clang.
export ARCHFLAGS="-arch x86_64"
arch=$(uname -m)
export ARCHFLAGS="-arch $arch"

info "Installing build dependencies"
# note: re pip installing from PyPI,
Expand Down Expand Up @@ -149,7 +150,7 @@ if [ ! -f "$DLL_TARGET_DIR/libsecp256k1.2.dylib" ]; then
else
info "Skipping libsecp256k1 build: reusing already built dylib."
fi
#cp -f "$DLL_TARGET_DIR"/libsecp256k1.*.dylib "$PROJECT_ROOT/bitcoin_safe" || fail "Could not copy libsecp256k1 dylib"
cp -f "$DLL_TARGET_DIR"/libsecp256k1.*.dylib "$PROJECT_ROOT/bitcoin_safe" || fail "Could not copy libsecp256k1 dylib"

if [ ! -f "$DLL_TARGET_DIR/libzbar.0.dylib" ]; then
info "Building ZBar dylib..."
Expand Down

0 comments on commit 1000a00

Please sign in to comment.