Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install.sh #1157

Merged
merged 6 commits into from
Nov 9, 2020
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,18 @@ text_input() {



releaseURL=$(curl -s "https://api.github.com/repos/UnchartedBull/OctoDash/releases/latest" | grep "browser_download_url.*armv7l.deb" | cut -d '"' -f 4)
dependencies="libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils libatspi2.0-0 libuuid1 libappindicator3-1 libsecret-1-0 xserver-xorg ratpoison x11-xserver-utils xinit libgtk-3-0 bc desktop-file-utils libavahi-compat-libdnssd1"
arch=$(uname -m)
if [[ $arch == x86_64 ]]; then
releaseURL=$(curl -s "https://api.github.com/repos/UnchartedBull/OctoDash/releases/latest" | grep "browser_download_url.*amd64.deb" | cut -d '"' -f 4)
elif [[ $arch == aarch64 ]]; then
releaseURL=$(curl -s "https://api.github.com/repos/UnchartedBull/OctoDash/releases/latest" | grep "browser_download_url.*arm64.deb" | cut -d '"' -f 4)
elif [[ $arch == arm* ]]; then
releaseURL=$(curl -s "https://api.github.com/repos/UnchartedBull/OctoDash/releases/latest" | grep "browser_download_url.*armv7l.deb" | cut -d '"' -f 4)
fi
dependencies="libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils libatspi2.0-0 libuuid1 libappindicator3-1 libsecret-1-0 xserver-xorg ratpoison x11-xserver-utils xinit libgtk-3-0 bc desktop-file-utils libavahi-compat-libdnssd1 libpam0g-dev libx11-dev"
IFS='/' read -ra version <<< "$releaseURL"

echo "Installing OctoDash "${version[7]}
echo "Installing OctoDash "${version[7]}, $arch

echo "Installing Dependencies ..."
sudo apt -qq update
Expand Down Expand Up @@ -723,7 +730,7 @@ if [ $DIRECTORY != "-" ]; then
fi;
fi;

echo "Installing OctoDash ..."
echo "Installing OctoDash "${version[7]}, $arch..."
UnchartedBull marked this conversation as resolved.
Show resolved Hide resolved
cd ~
wget -O octodash.deb $releaseURL -q --show-progress

Expand Down Expand Up @@ -782,7 +789,7 @@ fi


list_input "Shall I reboot your Pi now?" yes_no reboot
echo "OctoDash has been successfully installed! :)"
echo "OctoDash "${version[7]} $arch" has been successfully installed! :)"
UnchartedBull marked this conversation as resolved.
Show resolved Hide resolved
if [ $reboot == 'yes' ]; then
sudo reboot
fi