Skip to content

Commit

Permalink
make_osx: lipo
Browse files Browse the repository at this point in the history
  • Loading branch information
yjh0502 committed Jan 14, 2023
1 parent a31f043 commit e74dec9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
7 changes: 6 additions & 1 deletion build/make_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ set -exuo pipefail

for lib in openssl nghttp2 curl; do
(cd $lib && ./make_osx.sh)
(cd $lib && ./make_osx_arm.sh)
done

mkdir -p ../Assets/curl-unity/Plugins/osx/curl.bundle/Contents/MacOS/
cp curl/prebuilt/osx/lib/libcurl.dylib ../Assets/curl-unity/Plugins/osx/curl.bundle/Contents/MacOS/curl

lipo -create \
-arch x86_64 curl/prebuilt/osx/lib/libcurl.dylib \
-arch arm64e curl/prebuilt/osx_arm/lib/libcurl.dylib \
-output ../Assets/curl-unity/Plugins/osx/curl.bundle/Contents/MacOS/curl
10 changes: 0 additions & 10 deletions build/make_osx_arm.sh

This file was deleted.

0 comments on commit e74dec9

Please sign in to comment.