Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(fix): fix iOS version pack script. #4494

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions detox/scripts/pack_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ rm -rf build_temp
find ./ios -name Build -type d -exec rm -rf {} \;

# Package sources
pushd . &> /dev/null
cd ios
tar --exclude-from=.tbzignore -cjf ../Detox-ios-src.tbz .
popd &> /dev/null
cd ..

# Package prebuilt framework
echo "Packaging iOS sources and prebuilt frameworks"

# Create temp build directory
mkdir build_temp
scripts/build_framework.ios.sh "ios/Detox.xcodeproj" "build_temp" &> build_temp/detox_ios.log
pushd . &> /dev/null
cd build_temp
tar --exclude-from=../ios/.tbzignore -cjf ../Detox-ios-framework.tbz .
popd &> /dev/null

# Package prebuilt xcuitest runner
scripts/build_xcuitest.ios.sh "ios/DetoxXCUITestRunner/DetoxXCUITestRunner.xcworkspace" "build_temp" &> build_temp/detox_ios_xcuitest.log
pushd . &> /dev/null
# Package prebuilt framework
scripts/build_framework.ios.sh "ios/Detox.xcodeproj" "build_temp"

# Package prebuilt XCUITest runner
scripts/build_xcuitest.ios.sh "ios/DetoxXCUITestRunner/DetoxXCUITestRunner.xcodeproj" "build_temp"

cd build_temp
tar --exclude-from=../ios/.tbzignore -cjf ../Detox-ios-xcuitest.tbz .
popd &> /dev/null
tar --exclude-from=../ios/.tbzignore -cjf ../Detox-ios-framework.tbz .
cd ..

# Cleanup
rm -fr build_temp
Loading