Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
summeroff committed Nov 29, 2023
1 parent 7ed90cb commit eee956d
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions CI/macos/02_build_obs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ build_obs() {
set -o pipefail && xcodebuild -archivePath "obs-studio.xcarchive" -scheme obs-studio -destination "generic/platform=macOS,name=Any Mac'" archive 2>&1 | xcbeautify
set -o pipefail && xcodebuild -exportArchive -archivePath "obs-studio.xcarchive" -exportOptionsPlist "exportOptions.plist" -exportPath "." 2>&1 | xcbeautify
else
set -o pipefail && xcodebuild -scheme obs-studio -destination "generic/platform=macOS,name=Any Mac" -configuration RelWithDebInfo 2>&1 | xcbeautify

set +e
xcodebuild -scheme obs-studio -destination "generic/platform=macOS,name=Any Mac" -configuration RelWithDebInfo 2>&1 | xcbeautify 2>/dev/null
xcodebuild -scheme install -destination "generic/platform=macOS,name=Any Mac" -configuration RelWithDebInfo 2>&1 | xcbeautify 2>/dev/null
set -e
mkdir OBS.app
ditto UI/RelWithDebInfo/OBS.app OBS.app
fi
Expand All @@ -54,23 +56,9 @@ build_obs() {
status "Install OBS..."
cmake --build --target install --preset macos-${ARCH} -v
fi
ls -laR .
status "Build OBS done"
set +e
pushd "build_${ARCH}" > /dev/null

status "Build OBS try xcodebuild again scheme obs-studio"
xcodebuild -scheme obs-studio -destination "generic/platform=macOS,name=Any Mac" -configuration RelWithDebInfo 2>&1 | xcbeautify 2>/dev/null
status "Build OBS try xcodebuild again scheme install"
xcodebuild -scheme install -destination "generic/platform=macOS,name=Any Mac" -configuration RelWithDebInfo 2>&1 | xcbeautify 2>/dev/null

status "Build OBS try xcodebuild again archivePath"
xcodebuild -archivePath "obs-studio.xcarchive" -scheme obs-studio -destination "generic/platform=macOS,name=Any Mac'" archive 2>&1 | xcbeautify 2>/dev/null
status "Build OBS try xcodebuild again exportArchive"
xcodebuild -exportArchive -archivePath "obs-studio.xcarchive" -exportOptionsPlist "exportOptions.plist" -exportPath "." 2>&1 | xcbeautify 2>/dev/null

popd > /dev/null
set -e

ls -la .
ls -laR build*
}

bundle_obs() {
Expand Down

0 comments on commit eee956d

Please sign in to comment.