Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sui-setup.sh startup script for Cargo install through genesis #1819

Merged
merged 7 commits into from
May 10, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions doc/utils/sui-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
# Prereqs: Rust Cargo, Git CLI, and GitHub account
# Usage: set up environment for Sui development
# Run `sui-setup.sh` in the directory to download source
shopt -s nullglob
set -e
set -o pipefail

## Confirm or get Cargo with Rust toolchain
command -v cargo >/dev/null 2>&1 || { echo "Cargo (https://doc.rust-lang.org/cargo/getting-started/installation.html) is not installed or missing from PATH, exiting."; return 1; }

## Build and install Sui binaries
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch "devnet" sui

## Install Move Analyzer language server plugin
cargo install --git https://github.com/move-language/move move-analyzer
## Get the VSCode extension at: https://marketplace.visualstudio.com/items?itemName=move.move-analyzer

## Download Sui source code
git clone https://github.com/MystenLabs/sui.git

## Create Wallet configuration
sui genesis --force

done
# unset it now
shopt -u nullglob