mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
43 lines
827 B
Bash
Executable File
43 lines
827 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
REQUIRED_XCODE_VERSION="$(cat "$(dirname "$0")/../../../.xcode-version" | tr -d '\n')"
|
|
UPDATE_REPOS=false
|
|
|
|
while [[ $# -gt 0 ]]; do
|
|
case $1 in
|
|
-u|--update)
|
|
UPDATE_REPOS=true
|
|
shift
|
|
;;
|
|
*)
|
|
shift
|
|
;;
|
|
esac
|
|
done
|
|
|
|
check_xcode_version() {
|
|
local current_version=$(xcodebuild -version | grep "Xcode" | cut -d' ' -f2)
|
|
if [ "$current_version" != "$REQUIRED_XCODE_VERSION" ]; then
|
|
echo "Error: Xcode version mismatch"
|
|
echo "Required: $REQUIRED_XCODE_VERSION"
|
|
echo "Current: $current_version"
|
|
exit 1
|
|
fi
|
|
echo "Xcode version check passed: $current_version"
|
|
}
|
|
|
|
# Check Xcode version
|
|
check_xcode_version
|
|
|
|
# Install pods
|
|
cd ios/
|
|
bundle install
|
|
if [ "$UPDATE_REPOS" = true ]; then
|
|
bundle exec pod install --repo-update
|
|
else
|
|
bundle exec pod install
|
|
fi
|
|
cd ..
|