From 7a4e27e5f054f418f4aa08c6c0c3c22c50bf0c97 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 19 Dec 2023 16:38:02 +0100 Subject: [MacOS] Use framekwork to package GDExtension This allows it to be code-signed as a bundle so gatekeeper won't complain when loaded by the editor. --- misc/dist/macos/Info.plist | 28 ++++++++++++++++++++++++++++ misc/scripts/package_release.sh | 2 +- misc/webrtc.gdextension | 4 ++-- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 misc/dist/macos/Info.plist (limited to 'misc') diff --git a/misc/dist/macos/Info.plist b/misc/dist/macos/Info.plist new file mode 100644 index 0000000..679f64c --- /dev/null +++ b/misc/dist/macos/Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleExecutable + {LIBRARY_NAME} + CFBundleIdentifier + org.godotengine.webrtc-native + CFBundleInfoDictionaryVersion + 6.0 + CFBundleDisplayName + {DISPLAY_NAME} + CFBundleName + webrtc_native + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1.0.0 + LSMinimumSystemVersion + 11.0 + + diff --git a/misc/scripts/package_release.sh b/misc/scripts/package_release.sh index 3ca5a2b..c3cf553 100755 --- a/misc/scripts/package_release.sh +++ b/misc/scripts/package_release.sh @@ -16,7 +16,7 @@ DESTDIR="${DESTINATION}/${VERSION}/${TYPE}" mkdir -p ${DESTDIR}/lib -find "${ARTIFACTS}" -wholename "*/${VERSION}/${TYPE}/lib/*" | xargs cp -t "${DESTDIR}/lib/" +find "${ARTIFACTS}" -maxdepth 5 -wholename "*/${VERSION}/${TYPE}/lib/*" | xargs cp -r -t "${DESTDIR}/lib/" find "${ARTIFACTS}" -wholename "*/LICENSE*" | xargs cp -t "${DESTDIR}/" if [ $VERSION = "gdnative" ]; then diff --git a/misc/webrtc.gdextension b/misc/webrtc.gdextension index 6b25ce5..9cb89c1 100644 --- a/misc/webrtc.gdextension +++ b/misc/webrtc.gdextension @@ -9,7 +9,7 @@ linux.debug.x86_64 = "lib/libwebrtc_native.linux.template_debug.x86_64.so" linux.debug.x86_32 = "lib/libwebrtc_native.linux.template_debug.x86_32.so" linux.debug.arm64 = "lib/libwebrtc_native.linux.template_debug.arm64.so" linux.debug.arm32 = "lib/libwebrtc_native.linux.template_debug.arm32.so" -macos.debug = "lib/libwebrtc_native.macos.template_debug.universal.dylib" +macos.debug = "lib/libwebrtc_native.macos.template_debug.universal.framework" windows.debug.x86_64 = "lib/libwebrtc_native.windows.template_debug.x86_64.dll" windows.debug.x86_32 = "lib/libwebrtc_native.windows.template_debug.x86_32.dll" android.debug.arm64 = "lib/libwebrtc_native.android.template_debug.arm64.so" @@ -21,7 +21,7 @@ linux.release.x86_64 = "lib/libwebrtc_native.linux.template_release.x86_64.so" linux.release.x86_32 = "lib/libwebrtc_native.linux.template_release.x86_32.so" linux.release.arm64 = "lib/libwebrtc_native.linux.template_release.arm64.so" linux.release.arm32 = "lib/libwebrtc_native.linux.template_release.arm32.so" -macos.release = "lib/libwebrtc_native.macos.template_release.universal.dylib" +macos.release = "lib/libwebrtc_native.macos.template_release.universal.framework" windows.release.x86_64 = "lib/libwebrtc_native.windows.template_release.x86_64.dll" windows.release.x86_32 = "lib/libwebrtc_native.windows.template_release.x86_32.dll" android.release.arm64 = "lib/libwebrtc_native.android.template_release.arm64.so" -- cgit v1.2.3