Skip to content

Commit

Permalink
Merge pull request #60 from l-monninger/main
Browse files Browse the repository at this point in the history
[INSTALLER] variable subnet id w/ CI integration.
  • Loading branch information
l-monninger authored Oct 6, 2023
2 parents ee04a2d + 3f90400 commit b95b13a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ MOVEMENT_DIR="$HOME/.movement"
MOVEMENT_WORKSPACE="$MOVEMENT_DIR/workspace"
PLUGINS_DIR="$MOVEMENT_DIR/plugins"
BIN_DIR="$MOVEMENT_DIR/bin"
SUBNET_ID="2gLyawqthdiyrJktJmdnDAb1XVc6xwJXU6iJKu3Uwj21F2mXAK"

# CLI arguments
LATEST=true
Expand Down Expand Up @@ -337,8 +338,8 @@ build() {
mv "$MOVEMENT_DIR/movement-subnet/vm/aptos-vm/target/release/subnet" "$PLUGINS_DIR/subnet"

# Symlink the subnet binary with its subnet ID
ln -sf "$PLUGINS_DIR/subnet" "$PLUGINS_DIR/qCP4kDnEWVorqyoUmcAtAmJybm8gXZzhHZ7pZibrJJEWECooU"
ln -sf "$PLUGINS_DIR/subnet" "$AVALANCHEGO_DIR/plugins/qCP4kDnEWVorqyoUmcAtAmJybm8gXZzhHZ7pZibrJJEWECooU"
ln -sf "$PLUGINS_DIR/subnet" "$PLUGINS_DIR/$SUBNET_ID"
ln -sf "$PLUGINS_DIR/subnet" "$AVALANCHEGO_DIR/plugins/$SUBNET_ID"

# Build the movement binary
cargo build --release -p movement
Expand Down Expand Up @@ -369,8 +370,8 @@ download(){


# Symlink the subnet binary with its subnet ID
ln -sf "$PLUGINS_DIR/subnet" "$PLUGINS_DIR/qCP4kDnEWVorqyoUmcAtAmJybm8gXZzhHZ7pZibrJJEWECooU"
ln -sf "$PLUGINS_DIR/subnet" "$AVALANCHEGO_DIR/plugins/qCP4kDnEWVorqyoUmcAtAmJybm8gXZzhHZ7pZibrJJEWECooU"
ln -sf "$PLUGINS_DIR/subnet" "$PLUGINS_DIR/$SUBNET_ID"
ln -sf "$PLUGINS_DIR/subnet" "$AVALANCHEGO_DIR/plugins/$SUBNET_ID"

chmod -R 755 $BIN_DIR

Expand Down

0 comments on commit b95b13a

Please sign in to comment.