Files
AFFiNE-Mirror/packages/frontend/apps/ios/setup.sh
2024-12-24 07:51:11 +00:00

30 lines
531 B
Bash
Executable File

#!/bin/zsh
set -e
set -o pipefail
# packages/frontend/apps/ios/
cd "$(dirname "$0")"
cd ../../../../
if [ ! -d .git ]; then
echo "[-] .git directory not found at project root"
exit 1
fi
echo "[+] setting up the project"
yarn install
BUILD_TYPE=canary PUBLIC_PATH="/" yarn workspace @affine/ios build
yarn workspace @affine/ios cap sync
rustup target add aarch64-apple-ios
rustup target add aarch64-apple-ios-sim
rustup target add aarch64-apple-darwin
echo "[+] setup complete"
yarn workspace @affine/ios cap open ios