@@ -57,7 +57,7 @@ elif command -v ~/.cargo/bin/cargo &> /dev/null; then
5757 echo " 👍 cargo installed in ~/.cargo/bin/"
5858else
5959 echo " 🚨 Rust/Cargo not installed"
60- echo -e " ERROR : 'cargo' is a required dependency.\nInstall Rust using either homebrew or follow instructions at https://www.rust-lang.org/tools/install"
60+ echo -e " error : 'cargo' is a required dependency.\nInstall Rust using either homebrew or follow instructions at https://www.rust-lang.org/tools/install"
6161 exit 1
6262fi
6363
6767
6868# Update pact-reference submodule
6969echo " 🔃 Updating pact-reference submodule"
70- executeCommand " git submodule update --init "
70+ executeCommand " git submodule update --remote --recursive "
7171
7272echo " ℹ️ Changing location to ${LIBPACT_FFI_DIR} "
7373executeCommand " cd $LIBPACT_FFI_DIR "
@@ -120,7 +120,7 @@ executeCommand "cargo build --target=aarch64-apple-darwin --release"
120120echo " 🏗 Building libpact_ffi.a for arm64 iOS device"
121121executeCommand " cargo build --target=aarch64-apple-ios --release"
122122
123- echo " ✅ libpact_ffi.a binaries built"
123+ echo -e " ✅ ${GREEN} libpact_ffi.a binaries built$NOCOLOR "
124124
125125echo " 🏗 Building pact_ffi.h..."
126126executeCommand " mkdir -p build && cd build"
@@ -140,23 +140,23 @@ echo "🏗 Copying binaries from ${PWD} to ${WORKSPACE}/Resources"
140140# Copy binary for an iOS device
141141echo " 🚚 Copying arm64-ios (iOS device) binary..."
142142executeCommand " cp ../target/aarch64-apple-ios/release/libpact_ffi.a $WORKSPACE /Resources/iOS-device/libpact_ffi.a"
143- echo " 👍 Copied arm64-ios binary."
143+ echo -e " ${GREEN} 👍 Copied arm64-ios binary.$NOCOLOR "
144144
145145# Create a fat binary for iOS Simulators and copy to workspace
146146echo " 🚚 Creating a fat binary for iOS Simulator (x86_64 and arm64)..."
147147executeCommand " lipo -create \
148148 ../target/x86_64-apple-ios/release/libpact_ffi.a \
149149 ../target/aarch64-apple-ios-sim/release/libpact_ffi.a \
150150 -output $WORKSPACE /Resources/iOS-simulator/libpact_ffi.a"
151- echo " 👍 Copied x86_64-ios and arm64-ios-sim fattie."
151+ echo -e " ${GREEN} 👍 Copied x86_64-ios and arm64-ios-sim fattie.$NOCOLOR "
152152
153153# Create a fat darwin binary and copy to workspace
154154echo " 🚚 Copying x86_64-darwin and arm64-darwin into a fat binary..."
155155executeCommand " lipo -create \
156156 ../target/x86_64-apple-darwin/release/libpact_ffi.a \
157157 ../target/aarch64-apple-darwin/release/libpact_ffi.a \
158158 -output $WORKSPACE /Resources/x86_64-darwin/libpact_ffi.a"
159- echo " 👍 Copied x86_64-darwin and arm64-darwin fattie."
159+ echo -e " 👍 ${GREEN} Copied x86_64-darwin and arm64-darwin fattie.$NOCOLOR "
160160
161161echo " 🏗 Copying pact_ffi.h from ${PWD} /include to ${WORKSPACE} /Sources"
162162executeCommand " cp include/pact_ffi.h ${WORKSPACE} /Sources"
0 commit comments