Skip to content

Commit

Permalink
chore: update osx binary names for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jun 19, 2024
1 parent a47fdb5 commit 4654169
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
]
},
"copies": [{
"files": ["<(module_root_dir)/ffi/osx-x86_64/libpact_ffi.dylib"],
"files": ["<(module_root_dir)/ffi/macos-x86_64/libpact_ffi.dylib"],
"destination": "<(PRODUCT_DIR)"
}],
}
Expand All @@ -79,7 +79,7 @@
]
},
"copies": [{
"files": ["<(module_root_dir)/ffi/osx-aarch64/libpact_ffi.dylib"],
"files": ["<(module_root_dir)/ffi/macos-aarch64/libpact_ffi.dylib"],
"destination": "<(PRODUCT_DIR)"
}],
}
Expand Down
2 changes: 1 addition & 1 deletion script/download-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)" # Figure out where the

. "${SCRIPT_DIR}/lib/export-binary-versions.sh"
"${SCRIPT_DIR}/lib/download-ffi.sh"
"${SCRIPT_DIR}/lib/download-plugins.sh"
"${SCRIPT_DIR}/download-plugins.sh"
8 changes: 4 additions & 4 deletions script/lib/download-ffi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ fi

warn "Cleaning ffi directory $FFI_DIR"
rm -rf "${FFI_DIR:?}"
mkdir -p "$FFI_DIR/osx-x86_64"
mkdir -p "$FFI_DIR/macos-x86_64"
mkdir -p "$FFI_DIR/linux-x86_64"
mkdir -p "$FFI_DIR/linux-musl-x86_64"
mkdir -p "$FFI_DIR/windows-x86_64"
mkdir -p "$FFI_DIR/osx-aarch64"
mkdir -p "$FFI_DIR/macos-aarch64"
mkdir -p "$FFI_DIR/linux-aarch64"
mkdir -p "$FFI_DIR/linux-musl-aarch64"

Expand Down Expand Up @@ -69,8 +69,8 @@ if [ -z "${ONLY_DOWNLOAD_PACT_FOR_WINDOWS:-}" ]; then
download_ffi "linux-aarch64.so.gz" "lib" "linux-aarch64/libpact_ffi.so.gz"
download_ffi "linux-x86_64-musl.so.gz" "lib" "linux-musl-x86_64/libpact_ffi_musl.so.gz"
download_ffi "linux-aarch64-musl.so.gz" "lib" "linux-musl-aarch64/libpact_ffi_musl.so.gz"
download_ffi "osx-x86_64.dylib.gz" "lib" "osx-x86_64/libpact_ffi.dylib.gz"
download_ffi "osx-aarch64.dylib.gz" "lib" "osx-aarch64/libpact_ffi.dylib.gz"
download_ffi "macos-x86_64.dylib.gz" "lib" "macos-x86_64/libpact_ffi.dylib.gz"
download_ffi "macos-aarch64.dylib.gz" "lib" "macos-aarch64/libpact_ffi.dylib.gz"
else
warn "Skipped download of non-windows FFI libs because ONLY_DOWNLOAD_PACT_FOR_WINDOWS is set"
fi
Expand Down

0 comments on commit 4654169

Please sign in to comment.