mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
30 lines
531 B
Bash
Executable File
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
|