diff --git a/native/MacRestarter/make.sh b/native/MacRestarter/make.sh index 6510630e4636..cb12a030b1f1 100755 --- a/native/MacRestarter/make.sh +++ b/native/MacRestarter/make.sh @@ -1,3 +1,7 @@ #!/bin/sh -clang -arch x86_64 -mmacosx-version-min=10.8 -framework AppKit -lobjc -o restarter restarter.m \ No newline at end of file +clang -arch x86_64 -mmacosx-version-min=10.8 -framework AppKit -lobjc -o restarter_x86_64 restarter.m +clang -arch arm64 -mmacosx-version-min=10.8 -framework AppKit -lobjc -o restarter_arm64 restarter.m +lipo -create restarter_x86_64 restarter_arm64 -o restarter +rm restarter_arm64 +rm restarter_x86_64 \ No newline at end of file diff --git a/native/fsNotifier/mac/make.sh b/native/fsNotifier/mac/make.sh index 57e4e187d430..57251349b0a9 100755 --- a/native/fsNotifier/mac/make.sh +++ b/native/fsNotifier/mac/make.sh @@ -2,4 +2,8 @@ C_FLAGS="-std=c11 -O2 -Wall -Wextra -Wpedantic -Wno-newline-eof" -clang -arch x86_64 -mmacosx-version-min=10.8 -framework CoreServices -std=c11 $C_FLAGS -o fsnotifier fsnotifier.c \ No newline at end of file +clang -arch x86_64 -mmacosx-version-min=10.8 -framework CoreServices -std=c11 $C_FLAGS -o fsnotifier_x86_64 fsnotifier.c +clang -arch arm64 -mmacosx-version-min=10.8 -framework CoreServices -std=c11 $C_FLAGS -o fsnotifier_arm64 fsnotifier.c +lipo -create fsnotifier_x86_64 fsnotifier_arm64 -o fsnotifier +rm fsnotifier_arm64 +rm fsnotifier_x86_64 \ No newline at end of file