File tree Expand file tree Collapse file tree 7 files changed +71
-21
lines changed
Expand file tree Collapse file tree 7 files changed +71
-21
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,14 @@ if(DEFINED ENV{APPLE_TEAM_ID} AND NOT $ENV{APPLE_TEAM_ID} STREQUAL "")
2828 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR} "
2929 MACOSX_BUNDLE ON
3030 MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR} /Info.plist"
31- XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER com.streamlabs.slobs
31+ XCODE_ATTRIBUTE_DEVELOPMENT_TEAM "$ENV{APPLE_TEAM_ID} "
32+ XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER com.streamlabs.slobs.camera-extension-installer
3233 XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR} /entitlements.plist"
3334 XCODE_ATTRIBUTE_PRODUCT_NAME slobs-virtual-cam-installer)
3435
3536 # Switch to automatic codesigning via valid team ID
36- set (CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_STYLE Automatic)
37- set (CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "Apple Development" )
38- set (CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM $ENV{APPLE_TEAM_ID} )
39- #set(XCODE_ATTRIBUTE_PRODUCT_NAME slobs-virtual-cam-installer)
37+ set (CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_STYLE Automatic)
38+ set (CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM "$ENV{APPLE_TEAM_ID} " )
4039
4140 # Run shell script to install the mac-camera-extension
4241 add_custom_target (run_script ALL
Original file line number Diff line number Diff line change 2323 "generator" : " Xcode" ,
2424 "binaryDir" : " ${sourceDir}/build" ,
2525 "cacheVariables" : {
26- "CAMERA_EXTENSION_GIT_TAG_VER" : {"type" : " STRING" , "value" : " 30.2.4sl34 " }
26+ "CAMERA_EXTENSION_GIT_TAG_VER" : {"type" : " STRING" , "value" : " 30.2.4sl36-vcam4 " }
2727 }
2828 }
2929 ],
Original file line number Diff line number Diff line change 1- <!-- ?xml version="1.0" encoding="UTF-8"?-- >
1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
22<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33<plist version =" 1.0" >
4- <dict >
5- <key >com.apple.security.app-sandbox </key >
6- <true />
7- <key >com.apple.security.application-groups </key >
8- <array >
9- <string >$(TeamIdentifierPrefix)com.streamlabs.slobs </string >
10- </array >
11- <key >CFBundleIdentifier </key >
12- <string >com.streamlabs.slobs </string >
13- </dict >
4+ <dict >
5+ <key >CFBundleName </key >
6+ <string >slobs-installer </string >
7+ <key >CFBundleIdentifier </key >
8+ <string >com.streamlabs.slobs.camera-extension-installer </string >
9+ <key >CFBundleVersion </key >
10+ <string >${MACOSX_BUNDLE_BUNDLE_VERSION} </string >
11+ <key >CFBundleShortVersionString </key >
12+ <string >${MACOSX_BUNDLE_SHORT_VERSION_STRING} </string >
13+ <key >CFBundleInfoDictionaryVersion </key >
14+ <string >6.0 </string >
15+ <key >CFBundleExecutable </key >
16+ <string >slobs-virtual-cam-installer </string >
17+ <key >CFBundlePackageType </key >
18+ <string >APPL </string >
19+ <key >CFBundleSupportedPlatforms </key >
20+ <array >
21+ <string >MacOSX </string >
22+ </array >
23+ </dict >
1424</plist >
Original file line number Diff line number Diff line change 1+ root=$( pwd)
2+ cd build/RelWithDebInfo
3+
4+ /usr/bin/codesign -o runtime --force --sign " $APPLE_SLD_IDENTITY " --entitlements " $root " /build/camera-ext-entitlements.plist --timestamp\= none --generate-entitlement-der slobs-virtual-cam-installer.app/Contents/Library/SystemExtensions/com.streamlabs.slobs.mac-camera-extension.systemextension
5+
6+ cp -R " $SYSEXT_INSTALLER_PROVISIONING_PROFILE " slobs-virtual-cam-installer.app/Contents/embedded.provisionprofile
7+ /usr/bin/codesign -o runtime --force --sign " $APPLE_SLD_IDENTITY " --entitlements " $root " /entitlements.plist --timestamp\= none --generate-entitlement-der /Users/rosbo/projects/streamlabs/slobs-vcam-installer/build/RelWithDebInfo/slobs-virtual-cam-installer.app
8+
9+ echo " $0 run ditto slobs-virtual-cam-installer.app /Applications/slobs-virtual-cam-installer.app"
10+ ditto slobs-virtual-cam-installer.app /Applications/slobs-virtual-cam-installer.app
Original file line number Diff line number Diff line change 1+ # This script will codesign & notarize the app
2+ root=$( pwd)
3+ cd build/RelWithDebInfo
4+
5+ /usr/bin/codesign -o runtime --force --sign " Developer ID Application: ${APPLE_SLD_IDENTITY} " --entitlements " $root " /build/camera-ext-entitlements.plist --timestamp slobs-virtual-cam-installer.app/Contents/Library/SystemExtensions/com.streamlabs.slobs.mac-camera-extension.systemextension
6+ cp -R " $SYSEXT_INSTALLER_PROVISIONING_PROFILE " slobs-virtual-cam-installer.app/Contents/embedded.provisionprofile
7+ /usr/bin/codesign -o runtime --force --sign " Developer ID Application: ${APPLE_SLD_IDENTITY} " --entitlements " $root " /entitlements.plist --timestamp /Users/rosbo/projects/streamlabs/slobs-vcam-installer/build/RelWithDebInfo/slobs-virtual-cam-installer.app
8+
9+ echo " $0 run ditto slobs-virtual-cam-installer.app /Applications/slobs-virtual-cam-installer.app"
10+ ditto slobs-virtual-cam-installer.app /Applications/slobs-virtual-cam-installer.app
11+
12+ zip -r slobs-virtual-cam-installer.zip slobs-virtual-cam-installer.app
13+
14+ xcrun notarytool submit slobs-virtual-cam-installer.zip \
15+ --apple-id " $APPLE_ID " \
16+ --team-id " $APPLE_TEAM_ID " \
17+ --password " $APPLE_APP_PASSWORD " \
18+ --wait
19+
20+
21+ xcrun stapler staple slobs-virtual-cam-installer.app
22+
23+ echo " $0 run gatekeeper analysis post-notarytool"
24+ spctl --assess --type execute --verbose=4 slobs-virtual-cam-installer.app
25+ codesign --verify --verbose=4 slobs-virtual-cam-installer.app
26+
27+ # xcrun notarytool log c2a0836d-c24f-4d33-b861-a7d74997e36f --apple-id "$APPLE_ID" --team-id $APPLE_TEAM_ID --password "$APPLE_APP_PASSWORD"
28+
29+ echo " $0 run ditto slobs-virtual-cam-installer.app /Applications/slobs-virtual-cam-installer.app"
30+ ditto slobs-virtual-cam-installer.app /Applications/slobs-virtual-cam-installer.app
Original file line number Diff line number Diff line change 44 <dict >
55 <key >com.apple.security.app-sandbox </key >
66 <true />
7+ <key >com.apple.developer.system-extension.install </key >
8+ <true />
79 <key >com.apple.security.application-groups </key >
810 <array >
9- <string >$(TeamIdentifierPrefix) com.streamlabs.slobs </string >
11+ <string >UT675MBB9Q. com.streamlabs.slobs </string >
1012 </array >
11- <key >com.apple.developer.system-extension.install </key >
12- <true />
1313 </dict >
1414</plist >
Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ echo "Build the mac-camera-extension on $checkArch"
1515echo " Copy system extension into the app bundle at Contents/Library/SystemExtensions folder"
1616cd " $root "
1717mkdir -p ./RelWithDebInfo/slobs-virtual-cam-installer.app/Contents/Library/SystemExtensions/
18- cp -R obs-studio/plugins/mac-virtualcam/src/camera-extension/build_macos/RelWithDebInfo/com.streamlabs.slobs.mac-camera-extension.systemextension " $root " /RelWithDebInfo/slobs-virtual-cam-installer.app/Contents/Library/SystemExtensions/
18+ ditto obs-studio/plugins/mac-virtualcam/src/camera-extension/build_macos/RelWithDebInfo/com.streamlabs.slobs.mac-camera-extension.systemextension " $root " /RelWithDebInfo/slobs-virtual-cam-installer.app/Contents/Library/SystemExtensions/com.streamlabs.slobs.mac-camera-extension.systemextension
19+ cp obs-studio/plugins/mac-virtualcam/src/camera-extension/cmake/macos/slobs-entitlements.plist camera-ext-entitlements.plist
You can’t perform that action at this time.
0 commit comments