Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
retaildesk authored Jun 16, 2023
1 parent ce58a07 commit 319233e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ repo="retaildesk_app"
sudo apt-get -y purge app_retaildesk
desktop="$(xdg-user-dir DESKTOP)/retaildesk.desktop"

mkdir -p ~/Applications
mkdir -p $HOME/Applications

release_tag=$(wget -qO- "https://api.github.com/repos/$gebruikersnaam/$repo/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')


download_url=$(wget -qO- "https://api.github.com/repos/$gebruikersnaam/$repo/releases/tags/$release_tag" | grep "browser_download_url.*AppImage" | cut -d : -f 2,3 | tr -d "\"")
rm -f ~/Applications/retaildesk_app.AppImage
wget -O ~/Applications/retaildesk_app.AppImage $download_url
rm -f $HOME/Applications/retaildesk_app.AppImage
wget -O $HOME/Applications/retaildesk_app.AppImage $download_url

chmod +x ~/Applications/retaildesk_app.AppImage
chmod +x $HOME/Applications/retaildesk_app.AppImage



Expand Down

0 comments on commit 319233e

Please sign in to comment.