Skip to content

Commit

Permalink
Update orcaslicer-any
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Jan 13, 2025
1 parent e5d6b4c commit cd3887d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/x86_64/orcaslicer-any
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
chmod a+x ../remove || exit 1

# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
version=$(curl -Ls https://api.github.com/repos/SoftFever/OrcaSlicer/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*$APP.*mage$" | grep -vi aarch64 | head -1)
version=$(curl -Ls https://api.github.com/repos/SoftFever/OrcaSlicer/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*orcaslicer.*mage$" | grep -vi aarch64 | head -1)
wget "$version" || exit 1
#wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
Expand All @@ -33,7 +33,7 @@ set -u
APP=orcaslicer-any
SITE="SoftFever/OrcaSlicer"
version0=$(cat "/opt/$APP/version")
version=$(curl -Ls https://api.github.com/repos/SoftFever/OrcaSlicer/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*$APP.*mage$" | grep -vi aarch64 | head -1)
version=$(curl -Ls https://api.github.com/repos/SoftFever/OrcaSlicer/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*orcaslicer.*mage$" | grep -vi aarch64 | head -1)
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
Expand Down

0 comments on commit cd3887d

Please sign in to comment.