-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotrootksm.sh
53 lines (27 loc) · 1.31 KB
/
notrootksm.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
sudo apt update
sudo apt install curl -y
sudo curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
sudo apt install make clang pkg-config libssl-dev build-essential -y
sudo apt install git -y
sudo apt search golang-go
sudo apt search gccgo-go
sudo apt install golang-go -y
sudo apt install apt-transport-https curl gnupg -y
sudo curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
sudo mv bazel-archive-keyring.gpg /usr/share/keyrings
sudo echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
sudo apt install -y protobuf-compiler
sudo git clone https://github.com/paritytech/polkadot-sdk.git
cd polkadot-sdk
sudo git fetch
sudo apt install cmake -y
sudo git checkout v1.4.0
rustup install nightly-2023-09-13
rustup target add wasm32-unknown-unknown --toolchain nightly-2023-09-13
cd
sudo chmod -R 777 ./polkadot-sdk
cd polkadot-sdk
cargo +nightly-2023-09-13 build --release
sudo curl -o - -L https://snapshots.polkachu.com/snapshots/kusama/kusama_20620949.tar.lz4 | lz4 -c -d - | sudo tar -x -C /home/alwyzon/.local/share/polkadot/chains/ksmcc3/
sudo chmod -R 777 /home/alwyzon/.local/share/polkadot/chains/ksmcc3/db/full