diff --git a/public/frontend-evm.png b/public/frontend-evm.png deleted file mode 100644 index 7ad9248a6..000000000 Binary files a/public/frontend-evm.png and /dev/null differ diff --git a/public/gm/gm.png b/public/gm/gm.png deleted file mode 100644 index 8fdc4b750..000000000 Binary files a/public/gm/gm.png and /dev/null differ diff --git a/public/gm/init-arabica-testnet.sh b/public/gm/init-arabica-testnet.sh deleted file mode 100644 index 6924c772c..000000000 --- a/public/gm/init-arabica-testnet.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -# set variables for the chain -VALIDATOR_NAME=validator1 -CHAIN_ID=gm -KEY_NAME=gm-key -KEY_2_NAME=gm-key-2 -CHAINFLAG="--chain-id ${CHAIN_ID}" -TOKEN_AMOUNT="10000000000000000000000000stake" -STAKING_AMOUNT="1000000000stake" - -# query the DA Layer start height, in this case we are querying -# an RPC endpoint provided by Celestia Labs. The RPC endpoint is -# to allow users to interact with Celestia's core network by querying -# the node's state and broadcasting transactions on the Celestia -# network. This is for Arabica, if using another network, change the RPC. -DA_BLOCK_HEIGHT=$(curl https://rpc.celestia-arabica-11.com/block | jq -r '.result.block.header.height') -echo -e "\n Your DA_BLOCK_HEIGHT is $DA_BLOCK_HEIGHT \n" - -AUTH_TOKEN=$(celestia light auth write --p2p.network arabica) -echo -e "\n Your DA AUTH_TOKEN is $AUTH_TOKEN \n" - -# build the gm chain with Rollkit -ignite chain build - -# reset any existing genesis/chain data -gmd tendermint unsafe-reset-all - -# initialize the validator with the chain ID you set -gmd init $VALIDATOR_NAME --chain-id $CHAIN_ID - -# add keys for key 1 and key 2 to keyring-backend test -gmd keys add $KEY_NAME --keyring-backend test -gmd keys add $KEY_2_NAME --keyring-backend test - -# add these as genesis accounts -gmd genesis add-genesis-account $KEY_NAME $TOKEN_AMOUNT --keyring-backend test -gmd genesis add-genesis-account $KEY_2_NAME $TOKEN_AMOUNT --keyring-backend test - -# set the staking amounts in the genesis transaction -gmd genesis gentx $KEY_NAME $STAKING_AMOUNT --chain-id $CHAIN_ID --keyring-backend test - -# collect genesis transactions -gmd genesis collect-gentxs - -# copy centralized sequencer address into genesis.json -# Note: validator and sequencer are used interchangeably here -ADDRESS=$(jq -r '.address' ~/.gm/config/priv_validator_key.json) -PUB_KEY=$(jq -r '.pub_key' ~/.gm/config/priv_validator_key.json) -jq --argjson pubKey "$PUB_KEY" '.consensus["validators"]=[{"address": "'$ADDRESS'", "pub_key": $pubKey, "power": "1000", "name": "Rollkit Sequencer"}]' ~/.gm/config/genesis.json > temp.json && mv temp.json ~/.gm/config/genesis.json - -# create a restart-testnet.sh file to restart the chain later -[ -f restart-testnet.sh ] && rm restart-testnet.sh -echo "DA_BLOCK_HEIGHT=$DA_BLOCK_HEIGHT" >> restart-testnet.sh -echo "AUTH_TOKEN=$AUTH_TOKEN" >> restart-testnet.sh - -echo "gmd start --rollkit.aggregator --rollkit.da_auth_token=\$AUTH_TOKEN --rollkit.da.namespace 00000000000000000000000000000000000000000008e5f679bf7116cb --rollkit.da_start_height \$DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:26657 --grpc.address 127.0.0.1:9290 --p2p.laddr \"0.0.0.0:36656\" --minimum-gas-prices="0.025stake"" >> restart-testnet.sh - -# start the chain -gmd start --rollkit.aggregator --rollkit.da_auth_token=$AUTH_TOKEN --rollkit.da.namespace 00000000000000000000000000000000000000000008e5f679bf7116cb --rollkit.da_start_height $DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:26657 --grpc.address 127.0.0.1:9290 --p2p.laddr "0.0.0.0:36656" --minimum-gas-prices="0.025stake" diff --git a/public/gm/init-full-node.sh b/public/gm/init-full-node.sh deleted file mode 100644 index ebf50b806..000000000 --- a/public/gm/init-full-node.sh +++ /dev/null @@ -1,56 +0,0 @@ -CHAIN_ID=gm -BASE_DIR="$HOME/.gm_fn" -P2P_ID="your-p2p-id" - -# notice that this will remove the existing rollkit.toml that was used to run sequencing node -# if you need to run sequencing node again, you should update config_dir to the $HOME/gm/.gm -rm -rf $BASE_DIR rollkit.toml - -cat << EOF > rollkit.toml -entrypoint = "$HOME/gm/cmd/gmd/main.go" - -[chain] - config_dir = "$BASE_DIR" -EOF - -rollkit rebuild - -rollkit init FullNode --chain-id $CHAIN_ID - -cp -R "$HOME/gm/.gm/config/genesis.json" "$BASE_DIR/config/genesis.json" - -# rollkit logo -cat <<'EOF' - - :=+++=. - -++- .-++: - .=+=. :++-. - -++- .=+=: . - .=+=: -%@@@* - +%- .=#@@@@@@* - -++- -*%@@@@@@%+: - .=*=. .=#@@@@@@@%=. - -++-.-++: =*#@@@@@%+:.-++-=- - .=+=. :=+=.-: @@#=. .-*@@@@% - =*=: .-==+- :+#@@@@@@%- - :++- -*@@@@@@@#=: - =%+=. .=#@@@@@@@#%: - -++: -++- *+=@@@@%+: =#*##- - =*=. :=+=---@*=. .=*@@@@@% - .-+=: :-: :+%@@@@@@%+. - :=+- -*@@@@@@@#=. - .=+=: .=#@@@@@@%*- - -++- *=.@@@#+: - .====+*-. - - ______ _ _ _ _ _ - | ___ \ | || || | (_)| | - | |_/ / ___ | || || | __ _ | |_ - | / / _ \ | || || |/ /| || __| - | |\ \ | (_) || || || < | || |_ - \_| \_| \___/ |_||_||_|\_\|_| \__| - - -EOF - -rollkit start --rollkit.da.address http://127.0.0.1:7980 --rpc.laddr tcp://127.0.0.1:46657 --grpc.address 127.0.0.1:9390 --p2p.seeds $P2P_ID@127.0.0.1:36656 --p2p.laddr "0.0.0.0:46656" --log_level debug --minimum-gas-prices="0.025stake" diff --git a/public/gm/init-local.sh b/public/gm/init-local.sh deleted file mode 100644 index 2ff9695ce..000000000 --- a/public/gm/init-local.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/sh - -# set variables for the chain -VALIDATOR_NAME=validator1 -CHAIN_ID=gm -KEY_NAME=gm-key -KEY_2_NAME=gm-key-2 -KEY_RELAY=gm-relay -CHAINFLAG="--chain-id ${CHAIN_ID}" -TOKEN_AMOUNT="10000000000000000000000000stake" -STAKING_AMOUNT="1000000000stake" - -# query the DA Layer start height, in this case we are querying -# our local devnet at port 26657, the RPC. The RPC endpoint is -# to allow users to interact with Celestia's nodes by querying -# the node's state and broadcasting transactions on the Celestia -# network. The default port is 26657. -DA_BLOCK_HEIGHT=$(curl http://0.0.0.0:26657/block | jq -r '.result.block.header.height') - -AUTH_TOKEN=$(docker exec $(docker ps -q) celestia bridge auth admin --node.store /home/celestia/bridge) - -# rollkit logo -cat <<'EOF' - - :=+++=. - -++- .-++: - .=+=. :++-. - -++- .=+=: . - .=+=: -%@@@* - +%- .=#@@@@@@* - -++- -*%@@@@@@%+: - .=*=. .=#@@@@@@@%=. - -++-.-++: =*#@@@@@%+:.-++-=- - .=+=. :=+=.-: @@#=. .-*@@@@% - =*=: .-==+- :+#@@@@@@%- - :++- -*@@@@@@@#=: - =%+=. .=#@@@@@@@#%: - -++: -++- *+=@@@@%+: =#*##- - =*=. :=+=---@*=. .=*@@@@@% - .-+=: :-: :+%@@@@@@%+. - :=+- -*@@@@@@@#=. - .=+=: .=#@@@@@@%*- - -++- *=.@@@#+: - .====+*-. - - ______ _ _ _ _ _ - | ___ \ | || || | (_)| | - | |_/ / ___ | || || | __ _ | |_ - | / / _ \ | || || |/ /| || __| - | |\ \ | (_) || || || < | || |_ - \_| \_| \___/ |_||_||_|\_\|_| \__| -EOF - -# echo variables for the chain -echo -e "\n Your DA_BLOCK_HEIGHT is $DA_BLOCK_HEIGHT \n" - -# build the gm chain with Rollkit -ignite chain build - -# reset any existing genesis/chain data -gmd tendermint unsafe-reset-all - -# initialize the validator with the chain ID you set -gmd init $VALIDATOR_NAME --chain-id $CHAIN_ID - -# add keys for key 1 and key 2 to keyring-backend test -gmd keys add $KEY_NAME --keyring-backend test -gmd keys add $KEY_2_NAME --keyring-backend test -echo "milk verify alley price trust come maple will suit hood clay exotic" | gmd keys add $KEY_RELAY --keyring-backend test --recover - -# add these as genesis accounts -gmd genesis add-genesis-account $KEY_NAME $TOKEN_AMOUNT --keyring-backend test -gmd genesis add-genesis-account $KEY_2_NAME $TOKEN_AMOUNT --keyring-backend test -gmd genesis add-genesis-account $KEY_RELAY $TOKEN_AMOUNT --keyring-backend test - -# set the staking amounts in the genesis transaction -gmd genesis gentx $KEY_NAME $STAKING_AMOUNT --chain-id $CHAIN_ID --keyring-backend test - -# collect genesis transactions -gmd genesis collect-gentxs - -# copy centralized sequencer address into genesis.json -# Note: validator and sequencer are used interchangeably here -ADDRESS=$(jq -r '.address' ~/.gm/config/priv_validator_key.json) -PUB_KEY=$(jq -r '.pub_key' ~/.gm/config/priv_validator_key.json) -jq --argjson pubKey "$PUB_KEY" '.consensus["validators"]=[{"address": "'$ADDRESS'", "pub_key": $pubKey, "power": "1000", "name": "Rollkit Sequencer"}]' ~/.gm/config/genesis.json > temp.json && mv temp.json ~/.gm/config/genesis.json - -# create a restart-local.sh file to restart the chain later -[ -f restart-local.sh ] && rm restart-local.sh -echo "DA_BLOCK_HEIGHT=$DA_BLOCK_HEIGHT" >> restart-local.sh -echo "AUTH_TOKEN=$AUTH_TOKEN" >> restart-local.sh - -echo "gmd start --rollkit.node.aggregator --rollkit.da.auth_token=\$AUTH_TOKEN --rollkit.da.namespace 00000000000000000000000000000000000000000008e5f679bf7116cb --rollkit.da.start_height \$DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --grpc.address 127.0.0.1:9290 --p2p.laddr \"0.0.0.0:36656\" --minimum-gas-prices="0.025stake"" >> restart-local.sh - -# start the chain -gmd start --rollkit.node.aggregator --rollkit.da.auth_token=$AUTH_TOKEN --rollkit.da.namespace 00000000000000000000000000000000000000000008e5f679bf7116cb --rollkit.da.start_height $DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --grpc.address 127.0.0.1:9290 --p2p.laddr "0.0.0.0:36656" --minimum-gas-prices="0.025stake" diff --git a/public/gm/init-mainnet.sh b/public/gm/init-mainnet.sh deleted file mode 100644 index 4491ed2ed..000000000 --- a/public/gm/init-mainnet.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -# set variables for the chain -VALIDATOR_NAME=validator1 -CHAIN_ID=gm -KEY_NAME=gm-key -KEY_2_NAME=gm-key-2 -CHAINFLAG="--chain-id ${CHAIN_ID}" -TOKEN_AMOUNT="10000000000000000000000000stake" -STAKING_AMOUNT="1000000000stake" - -# query the DA Layer start height, in this case we are querying -# an RPC endpoint provided by Celestia Labs. The RPC endpoint is -# to allow users to interact with Celestia's core network by querying -# the node's state and broadcasting transactions on the Celestia -# network. This is for Arabica, if using another network, change the RPC. -DA_BLOCK_HEIGHT=$(curl https://rpc.lunaroasis.net/block | jq -r '.result.block.header.height') -echo -e "\n Your DA_BLOCK_HEIGHT is $DA_BLOCK_HEIGHT \n" - -AUTH_TOKEN=$(celestia light auth write --p2p.network celestia) -echo -e "\n Your DA AUTH_TOKEN is $AUTH_TOKEN \n" - -# build the gm chain with Rollkit -ignite chain build - -# reset any existing genesis/chain data -gmd tendermint unsafe-reset-all - -# initialize the validator with the chain ID you set -gmd init $VALIDATOR_NAME --chain-id $CHAIN_ID - -# add keys for key 1 and key 2 to keyring-backend test -gmd keys add $KEY_NAME --keyring-backend test -gmd keys add $KEY_2_NAME --keyring-backend test - -# add these as genesis accounts -gmd genesis add-genesis-account $KEY_NAME $TOKEN_AMOUNT --keyring-backend test -gmd genesis add-genesis-account $KEY_2_NAME $TOKEN_AMOUNT --keyring-backend test - -# set the staking amounts in the genesis transaction -gmd genesis gentx $KEY_NAME $STAKING_AMOUNT --chain-id $CHAIN_ID --keyring-backend test - -# collect genesis transactions -gmd genesis collect-gentxs - -# copy centralized sequencer address into genesis.json -# Note: validator and sequencer are used interchangeably here -ADDRESS=$(jq -r '.address' ~/.gm/config/priv_validator_key.json) -PUB_KEY=$(jq -r '.pub_key' ~/.gm/config/priv_validator_key.json) -jq --argjson pubKey "$PUB_KEY" '.consensus["validators"]=[{"address": "'$ADDRESS'", "pub_key": $pubKey, "power": "1000", "name": "Rollkit Sequencer"}]' ~/.gm/config/genesis.json > temp.json && mv temp.json ~/.gm/config/genesis.json - -# create a restart-mainnet.sh file to restart the chain later -[ -f restart-mainnet.sh ] && rm restart-mainnet.sh -echo "DA_BLOCK_HEIGHT=$DA_BLOCK_HEIGHT" >> restart-mainnet.sh -echo "AUTH_TOKEN=$AUTH_TOKEN" >> restart-mainnet.sh - -echo "gmd start --rollkit.aggregator --rollkit.da.auth_token=\$AUTH_TOKEN --rollkit.da.namespace 00000000000000000000000000000000000000000008e5f679bf7116cb --rollkit.da.start_height \$DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --grpc.address 127.0.0.1:9290 --p2p.laddr \"0.0.0.0:36656\" --minimum-gas-prices="0.025stake"" >> restart-mainnet.sh - -# start the chain -gmd start --rollkit.aggregator --rollkit.da.auth_token=$AUTH_TOKEN --rollkit.da.namespace 00000000000000000000000000000000000000000008e5f679bf7116cb --rollkit.da.start_height $DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --grpc.address 127.0.0.1:9290 --p2p.laddr "0.0.0.0:36656" --minimum-gas-prices="0.025stake" diff --git a/public/gm/init-mocha-testnet.sh b/public/gm/init-mocha-testnet.sh deleted file mode 100644 index ed3cc65ad..000000000 --- a/public/gm/init-mocha-testnet.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh - -# set variables for the chain -VALIDATOR_NAME=validator1 -CHAIN_ID=gm -KEY_NAME=gm-key -KEY_2_NAME=gm-key-2 -CHAINFLAG="--chain-id ${CHAIN_ID}" -TOKEN_AMOUNT="10000000000000000000000000stake" -STAKING_AMOUNT="1000000000stake" - -# query the DA Layer start height, in this case we are querying -# an RPC endpoint provided by Celestia Labs. The RPC endpoint is -# to allow users to interact with Celestia's core network by querying -# the node's state and broadcasting transactions on the Celestia -# network. This is for Arabica, if using another network, change the RPC. -DA_BLOCK_HEIGHT=$(curl https://rpc-mocha.pops.one/block | jq -r '.result.block.header.height') -echo -e "\n Your DA_BLOCK_HEIGHT is $DA_BLOCK_HEIGHT \n" - -AUTH_TOKEN=$(celestia light auth write --p2p.network mocha) -echo -e "\n Your DA AUTH_TOKEN is $AUTH_TOKEN \n" - -# build the gm chain with Rollkit -ignite chain build - -# reset any existing genesis/chain data -gmd tendermint unsafe-reset-all - -# initialize the validator with the chain ID you set -gmd init $VALIDATOR_NAME --chain-id $CHAIN_ID - -# add keys for key 1 and key 2 to keyring-backend test -gmd keys add $KEY_NAME --keyring-backend test -gmd keys add $KEY_2_NAME --keyring-backend test - -# add these as genesis accounts -gmd genesis add-genesis-account $KEY_NAME $TOKEN_AMOUNT --keyring-backend test -gmd genesis add-genesis-account $KEY_2_NAME $TOKEN_AMOUNT --keyring-backend test - -# set the staking amounts in the genesis transaction -gmd genesis gentx $KEY_NAME $STAKING_AMOUNT --chain-id $CHAIN_ID --keyring-backend test - -# collect genesis transactions -gmd genesis collect-gentxs - -# copy centralized sequencer address into genesis.json -# Note: validator and sequencer are used interchangeably here -ADDRESS=$(jq -r '.address' ~/.gm/config/priv_validator_key.json) -PUB_KEY=$(jq -r '.pub_key' ~/.gm/config/priv_validator_key.json) -jq --argjson pubKey "$PUB_KEY" '.consensus["validators"]=[{"address": "'$ADDRESS'", "pub_key": $pubKey, "power": "1000", "name": "Rollkit Sequencer"}]' ~/.gm/config/genesis.json > temp.json && mv temp.json ~/.gm/config/genesis.json - -# create a restart-testnet.sh file to restart the chain later -[ -f restart-testnet.sh ] && rm restart-testnet.sh -echo "DA_BLOCK_HEIGHT=$DA_BLOCK_HEIGHT" >> restart-testnet.sh -echo "AUTH_TOKEN=$AUTH_TOKEN" >> restart-testnet.sh - -echo "gmd start --rollkit.aggregator --rollkit.da.auth_token=\$AUTH_TOKEN --rollkit.da.namespace 00000000000000000000000000000000000000000008e5f679bf7116cb --rollkit.da.start_height \$DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --grpc.address 127.0.0.1:9290 --p2p.laddr \"0.0.0.0:36656\" --minimum-gas-prices="0.025stake"" >> restart-testnet.sh - -# start the chain -gmd start --rollkit.aggregator --rollkit.da.auth_token=$AUTH_TOKEN --rollkit.da.namespace 00000000000000000000000000000000000000000008e5f679bf7116cb --rollkit.da.start_height $DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --grpc.address 127.0.0.1:9290 --p2p.laddr "0.0.0.0:36656" --minimum-gas-prices="0.025stake" diff --git a/public/ibc/init-osmosis-local.sh b/public/ibc/init-osmosis-local.sh deleted file mode 100644 index ba06e5020..000000000 --- a/public/ibc/init-osmosis-local.sh +++ /dev/null @@ -1,53 +0,0 @@ -KEY="mykey" -CHAINID="osmosis-testnet-1" -MONIKER="localtestnet" -KEYALGO="secp256k1" -KEYRING="test" -LOGLEVEL="info" -# to trace evm -#TRACE="--trace" -TRACE="" -KEY_RELAY="osmosis-relay" -# remove existing daemon -rm -rf ~/.osmosis* - - -# validate dependencies are installed -command -v jq > /dev/null 2>&1 || { echo >&2 "jq not installed. More info: https://stedolan.github.io/jq/download/"; exit 1; } - -update_test_genesis () { - cat $HOME/.osmosisd/config/genesis.json | jq "$1" > $HOME/.osmosisd/config/tmp_genesis.json && mv $HOME/.osmosisd/config/tmp_genesis.json $HOME/.osmosisd/config/genesis.json -} - -# if $KEY exists it should be deleted -osmosisd keys add $KEY --keyring-backend $KEYRING --algo $KEYALGO -echo "milk verify alley price trust come maple will suit hood clay exotic" | osmosisd keys add $KEY_RELAY --keyring-backend $KEYRING --algo $KEYALGO --recover - -# Set moniker and chain-id for Evmos (Moniker can be anything, chain-id must be an integer) -osmosisd init $MONIKER --chain-id $CHAINID - -# Allocate genesis accounts (cosmos formatted addresses) -osmosisd add-genesis-account $KEY_RELAY 100000001000009000uosmo,100000000000000utest --keyring-backend $KEYRING -osmosisd add-genesis-account $KEY 100000001000000000uosmo --keyring-backend $KEYRING - -# Sign genesis transaction -osmosisd gentx $KEY 100000001000000000uosmo --keyring-backend $KEYRING --chain-id $CHAINID - -# Collect genesis tx -osmosisd collect-gentxs -update_test_genesis '.app_state["mint"]["params"]["mint_denom"]="uosmo"' -update_test_genesis '.app_state["staking"]["params"]["bond_denom"]="uosmo"' -update_test_genesis '.app_state["txfees"]["basedenom"]="uosmo"' - -# Run this to ensure everything worked and that the genesis file is setup correctly -osmosisd validate-genesis - -if [[ $1 == "pending" ]]; then - echo "pending mode is on, please wait for the first block committed." -fi - -osmosisd config chain-id $CHAINID -osmosisd config keyring-backend $KEYRING - -# Start the node (remove the --pruning=nothing flag if historical queries are not needed) -osmosisd start --pruning-keep-recent 10000 --minimum-gas-prices=0.0001uosmo --rpc.laddr tcp://0.0.0.0:46657 --p2p.laddr tcp://0.0.0.0:2240 --grpc.address 0.0.0.0:2242 --grpc-web.address 0.0.0.0:2243 --api.address tcp://127.0.0.1:2317 diff --git a/public/install-gm-rollup.sh b/public/install-gm-rollup.sh deleted file mode 100644 index e8d0300ba..000000000 --- a/public/install-gm-rollup.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -echo "Downloading GM tutorial rollup source code..." -git clone https://github.com/rollkit/gm.git -cd gm || { echo "Failed to find the downloaded repository"; exit 1; } -git fetch && git checkout remotes/origin/tutorial-local-da-rollkit diff --git a/public/install-local-sequencer.sh b/public/install-local-sequencer.sh deleted file mode 100644 index b3b91f9ca..000000000 --- a/public/install-local-sequencer.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -echo "Downloading local sequencer source code..." -git clone https://github.com/rollkit/go-sequencing.git -cd go-sequencing || { echo "Failed to find the downloaded repository"; exit 1; } -git fetch --all --tags -git checkout $1 -echo "Building and installing Local Sequencer..." -make build -echo "Starting Local Sequencer..." -./build/local-sequencer -rollup-id $2 diff --git a/public/install-yarn.sh b/public/install-yarn.sh deleted file mode 100644 index 1c8867ec9..000000000 --- a/public/install-yarn.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh - -set -e - -INSTALL_NODE_VER=21.7.2 -INSTALL_NVM_VER=0.39.7 -INSTALL_YARN_VER=1.22.19 - -# You can pass node and yarn versions as arguments to this script -if [ "$1" != '' ]; then - echo "==> Using specified node version - $1" - INSTALL_NODE_VER=$1 -fi -if [ "$2" != '' ]; then - echo "==> Using specified yarn version - $2" - INSTALL_YARN_VER=$2 -fi - -echo "==> Ensuring .bashrc exists and is writable" -touch ~/.bashrc - -echo "==> Installing node version manager (NVM). Version $INSTALL_NVM_VER" -# Removed if already installed -rm -rf ~/.nvm -# Unset exported variable -export NVM_DIR= - -# Install nvm -curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v$INSTALL_NVM_VER/install.sh | bash -# Make nvm command available to terminal -source ~/.nvm/nvm.sh - -echo "==> Installing node js version $INSTALL_NODE_VER" -nvm install $INSTALL_NODE_VER - -echo "==> Make this version system default" -nvm alias default $INSTALL_NODE_VER -nvm use default - -echo "==> Installing Yarn package manager" -rm -rf ~/.yarn -curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $INSTALL_YARN_VER - -echo "==> Adding Yarn and Node to environment path" -# Yarn configurations -mv $HOME/.nvm/versions/node/v$INSTALL_NODE_VER/bin/node $HOME/.yarn/bin - -export PATH="$HOME/.yarn/bin:$PATH" -yarn config set prefix ~/.yarn -g - -echo "==> Checking for versions" -nvm --version -node --version -npm --version -yarn --version - -echo "==> Print binary paths" -which npm -which node -which yarn - -echo "==> List installed node versions" -nvm ls - -nvm cache clear -echo "==> Now you're all setup and ready for development. If changes are yet to take effect, I suggest you restart your computer" diff --git a/public/install.sh b/public/install.sh index 30eea2be4..2f04ba0f2 100755 --- a/public/install.sh +++ b/public/install.sh @@ -88,7 +88,7 @@ echo "" print_header "Building and installing GM executable..." make install -print_success "gmd CLI installed successfully!" +print_success "CLI installed successfully!" cd .. print_header "Cleaning up downloads..."