Skip to content

Commit

Permalink
Revert "support installing mpm from source (#56)"
Browse files Browse the repository at this point in the history
This reverts commit 3f46c6c.
  • Loading branch information
nkysg committed Mar 2, 2023
1 parent c5aefae commit ddd9b00
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions scripts/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,26 +161,17 @@ function install_mpm {
if [[ $(uname -s) == "Darwin" ]]; then
mpm_file="mpm-macos-latest";
else
if [ "$(. /etc/os-release; echo $NAME)" = "Ubuntu" ]; then
if [[ $(lsb_release -r | cut -f 2) == '18.04' ]]; then
mpm_file="mpm-ubuntu-18.04";
else
mpm_file="mpm-ubuntu-latest";
fi
if [[ $(lsb_release -r | cut -f 2) == '18.04' ]]; then
mpm_file="mpm-ubuntu-18.04";
else
mpm_file="";
mpm_file="mpm-ubuntu-latest";
fi
fi
if [[ $mpm_file != "" ]]; then
curl -sL -o "${INSTALL_DIR}${mpm_file}.zip" "https://github.com/starcoinorg/starcoin/releases/download/${MPM_VERSION}/${mpm_file}.zip"
unzip -q "${INSTALL_DIR}${mpm_file}.zip" -d "${INSTALL_DIR}"
mv "${INSTALL_DIR}${mpm_file}/mpm" "${INSTALL_DIR}mpm"
chmod +x "${INSTALL_DIR}mpm"
rmdir "${INSTALL_DIR}${mpm_file}"
else
echo "Install mpm from source"
cargo install --git https://github.com/starcoinorg/starcoin move-package-manager --tag $MPM_VERSION --bin mpm --root $HOME
fi
curl -sL -o "${INSTALL_DIR}${mpm_file}.zip" "https://github.com/starcoinorg/starcoin/releases/download/${MPM_VERSION}/${mpm_file}.zip"
unzip -q "${INSTALL_DIR}${mpm_file}.zip" -d "${INSTALL_DIR}"
mv "${INSTALL_DIR}${mpm_file}/mpm" "${INSTALL_DIR}mpm"
chmod +x "${INSTALL_DIR}mpm"
rmdir "${INSTALL_DIR}${mpm_file}"
fi
}

Expand Down

0 comments on commit ddd9b00

Please sign in to comment.