mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
41 lines
748 B
Bash
Executable File
41 lines
748 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
# packages/frontend/apps/ios/
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
export SCRIPT_PATH=$(pwd)
|
|
export BUILD_TYPE=canary
|
|
export PUBLIC_PATH="/"
|
|
|
|
cd ../../../../
|
|
|
|
if [ ! -d .git ]; then
|
|
echo "[-] .git directory not found at project root"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[+] setting up the project"
|
|
|
|
echo "[*] interacting with yarn..."
|
|
yarn install
|
|
yarn affine @affine/ios build
|
|
yarn affine @affine/ios cap sync
|
|
|
|
echo "[*] interacting with rust..."
|
|
rustup target add aarch64-apple-ios
|
|
rustup target add aarch64-apple-ios-sim
|
|
rustup target add aarch64-apple-darwin
|
|
|
|
echo "[*] interacting with graphql..."
|
|
apollo-ios-cli generate --path $SCRIPT_PATH/apollo-codegen-config.json
|
|
|
|
echo "[+] setup complete"
|
|
|
|
yarn affine @affine/ios cap open ios
|