Browse Source

mac arm64

macarm
Dan Ballard 4 days ago
parent
commit
3a5668734e
  1. 2
      LIBCWTCH-GO-MACOS.version
  2. 2
      fetch-libcwtch-go-macos.sh
  3. 2
      lib/cwtch/ffi.dart
  4. 2
      macos/package-release.sh

2
LIBCWTCH-GO-MACOS.version

@ -1 +1 @@
2022-06-21-18-44-1.7.1-2-gff23465
2022-06-22-15-36-1.7.1-10-g231e27d

2
fetch-libcwtch-go-macos.sh

@ -4,5 +4,5 @@ VERSION=`cat LIBCWTCH-GO-MACOS.version`
echo $VERSION
curl https://build.openprivacy.ca/files/libCwtch-go-macos-$VERSION/libCwtch.x64.dylib --output libCwtch.x64.dylib
curl https://build.openprivacy.ca/files/libCwtch-go-macos-$VERSION/libCwtch.arm.dylib --output libCwtch.arm.dylib
curl https://build.openprivacy.ca/files/libCwtch-go-macos-$VERSION/libCwtch.arm64.dylib --output libCwtch.arm64.dylib

2
lib/cwtch/ffi.dart

@ -123,7 +123,7 @@ class CwtchFfi implements Cwtch {
if (Abi.current() == Abi.macosX64) {
return "libCwtch.x64.dylib";
} else {
return "libCwtch.arm.dylib";
return "libCwtch.arm64.dylib";
}
} else {
return UNSUPPORTED_OS;

2
macos/package-release.sh

@ -3,7 +3,7 @@
# Run from SRCROOT
cp libCwtch.x64.dylib build/macos/Build/Products/Release/Cwtch.app/Contents/Frameworks/
cp libCwtch.arm.dylib build/macos/Build/Products/Release/Cwtch.app/Contents/Frameworks/
cp libCwtch.arm64.dylib build/macos/Build/Products/Release/Cwtch.app/Contents/Frameworks/
cp -r macos/Tor build/macos/Build/Products/Release/Cwtch.app/Contents/MacOS/
rm Cwtch.dmg

Loading…
Cancel
Save