-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into '78-release-v1-0-4'
Dev See merge request cploutarchou/MicroGO!53
- Loading branch information
Showing
3 changed files
with
35 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
|
||
v1.0.4 | ||
### Version 1.0.4 | ||
- Create install script for MacOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
#!/bin/bash | ||
|
||
echo "Installing MicroGO binaries..." | ||
wget https://github.com/cploutarchou/MicroGO/releases/download/v1.0.1/microGo | ||
userDir=$USER | ||
echo "Enter your password to install MicroGO binaries using sudo" | ||
sudo chmod +x microGo | ||
sudo mv microGo /usr/local/bin/microGo # move to /usr/local/bin/microGo | ||
echo "MicroGO binaries installed" | ||
echo "Export env" | ||
# shellcheck disable=SC2016 | ||
echo 'export PATH=$PATH:/usr/local/bin/microGo' >>/home/"$userDir"/.bashrc | ||
echo "MicroGO binaries exported to PATH" | ||
source /home/"$userDir"/.bashrc | ||
echo "Installing MicroGO binaries..." | ||
curl -LJO https://github.com/cploutarchou/MicroGO/releases/download/v1.0.3/microGo | ||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
if grep -q "alias microGo" ~/.zprofile; then | ||
echo "Already exported" | ||
else | ||
sudo mv microGo /usr/local/bin/microGo | ||
chmod +x /usr/local/bin/microGo | ||
echo 'export PATH=$PATH:/usr/local/bin/microGo' >>/home/"$userDir"/.bashrc | ||
echo "MicroGO binaries exported to PATH" | ||
source /home/"$userDir"/.bashrc | ||
fi | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
mv microGo /Users/$userDir/go/bin/microGo | ||
echo "Enter your password to install MicroGO binaries using sudo" | ||
chmod +x /Users/$userDir/go/bin/microGo # move to /usr/local/bin/microGo | ||
echo "MicroGO binaries installed" | ||
echo "Export env" | ||
if grep -q "alias microGo" ~/.zprofile; then | ||
echo "Already exported" | ||
else | ||
source ~/.zprofile | ||
comm="alias microGo=/Users/$userDir/go/bin/microGo" | ||
echo $comm >>/Users/"$userDir"/.zprofile # add to .zprofile | ||
echo "MicroGO binaries exported to PATH" | ||
source ~/.zprofile | ||
fi | ||
else | ||
|
||
echo "Unsupported OS" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters