-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
build-all.sh
33 lines (29 loc) · 889 Bytes
/
build-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
wget https://sh.rustup.rs ;
sh index.html -y &&
source "$HOME/.cargo/env" &&
rustup default stable &&
rustup target add wasm32-unknown-unknown &&
(sh curl -L https://git.io/n-install | bash) ;
if [ "$EUID" -ne 0 ]
then
~/n/bin/n latest ;
~/n/bin/npm install -g typescript webpack
echo 'PATH="~/n/bin/:$PATH"' >> ~/.bashrc
else
/usr/local/n latest ;
/usr/local/n/bin/npm install -g typescript webpack
fi
echo 'PATH="$(npm config get prefix)/bin/:$PATH"' >> ~/.bashrc
source ~/.bashrc
git submodule update --init --recursive &&
export CARGO_TARGET_DIR="$(pwd)/target" &&
cd stdlib/typescript/ &&
npm run dev.package &&
cd ../.. &&
cargo install dioxus-cli
cargo install --path crates/core --force &&
cargo install --path crates/fdev --force &&
cd ./modules/identity-management/ && make build &&
cd ../antiflood-tokens/ && rm Cargo.lock ; make build &&
cd ../../