forked from srcrs/MagicBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
25 lines (22 loc) · 839 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#install chrome
set -x && \
apt update && \
apt upgrade -y && \
apt install -y wget curl gnupg libappindicator1 fonts-liberation locales fonts-noto-cjk && \
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
wget -qO - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \
apt update && \
apt install -y google-chrome-stable && \
rm -rf /var/lib/apt/lists/ && \
apt-get autoremove -y && \
apt-get autoclean -y
#download linux
arch=$(uname -m)
if [[ $arch == "x86_64" ]]; then
archname="amd64"
else
archname=$arch
fi
rm MagicBox_${archname}_linux
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