2023-08-12 03:48:28 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
active_version=$(solana -V | awk '{print $2}')
|
2024-11-01 21:17:19 +08:00
|
|
|
if [ "$active_version" != "2.1.0" ]; then
|
|
|
|
agave-install init 2.1.0
|
2023-08-12 03:48:28 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
git submodule update --init --recursive --depth 1
|
|
|
|
cd ts/packages/borsh && yarn --frozen-lockfile && yarn build && yarn link --force && cd ../../../
|
2024-05-30 04:24:32 +08:00
|
|
|
cd ts/packages/anchor-errors && yarn --frozen-lockfile && yarn build && yarn link --force && cd ../../../
|
2023-08-12 03:48:28 +08:00
|
|
|
cd ts/packages/anchor && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
|
|
|
|
cd ts/packages/spl-associated-token-account && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
|
|
|
|
cd ts/packages/spl-token && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
|
|
|
|
cd examples/tutorial && yarn link @coral-xyz/anchor @coral-xyz/borsh && yarn --frozen-lockfile && cd ../../
|
|
|
|
cd tests && yarn link @coral-xyz/anchor @coral-xyz/borsh @coral-xyz/spl-associated-token-account @coral-xyz/spl-token && yarn --frozen-lockfile && cd ..
|
|
|
|
cargo install --path cli anchor-cli --locked --force --debug
|