Skip to content

Commit

Permalink
Update install.sh (UnchartedBull#1157)
Browse files Browse the repository at this point in the history
* Update install.sh

Addd multi arch support to installer script.

* Update install.sh

Added additional deps reported here (https://github.com/UnchartedBull/OctoDash/wiki/Troubleshooting#not-starting-automatically)

* Update install.sh

Added arch info to Installing OctDash echo line, and removed arch echos.

* Update install.sh

forgot comma

* Update install.sh

Made sure that all echo "Installing OctoDash..." along w/ final echo of successful install provided version and arch info

* Update install.sh

Corrected missing " in echo lines. Removed version and arch from last echo line.
  • Loading branch information
Will-wastelander authored and kantlivelong committed May 5, 2021
1 parent cd530f9 commit f128ddd
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 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" ..."
cd ~
wget -O octodash.deb $releaseURL -q --show-progress

Expand Down

0 comments on commit f128ddd

Please sign in to comment.