Skip to content

Commit

Permalink
支持区分系统架构
Browse files Browse the repository at this point in the history
  • Loading branch information
srcrs committed Nov 22, 2023
1 parent 0fb8be3 commit 5e714f7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,12 @@ apt-get autoremove -y && \
apt-get autoclean -y

#download linux
curl -s https://api.github.com/repos/srcrs/magicbox/releases/latest | grep browser_download_url | grep linux | cut -d'"' -f4 | wget -i -
chmod +x MagicBox_amd64_linux
arch=$(uname -m)
if [[ $arch == "x86_64" ]]; then
archname="amd64"
else
archname=$arch
fi

curl -s https://api.github.com/repos/srcrs/magicbox/releases/latest | grep browser_download_url | grep linux | grep ${archname} | cut -d'"' -f4 | wget -i -
chmod +x MagicBox_${archname}_linux

0 comments on commit 5e714f7

Please sign in to comment.