Skip to content

Commit

Permalink
Merge pull request #4494 from wix/fix/ci-pack-ios
Browse files Browse the repository at this point in the history
ci(fix): fix iOS version pack script.
  • Loading branch information
asafkorem authored May 22, 2024
2 parents a4d01c8 + bad0ea0 commit 046a337
Showing 1 changed file with 12 additions and 12 deletions.
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

0 comments on commit 046a337

Please sign in to comment.