Skip to content

Commit

Permalink
update lite-xl to latest stable release (#1018)
Browse files Browse the repository at this point in the history
The latest pre-release is broken: lite-xl/lite-xl#1912
  • Loading branch information
Samueru-sama authored Oct 23, 2024
1 parent d02c5d1 commit 3f3efed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/x86_64/lite-xl
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/lite-xl/lite-xl/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
version=$(curl -Ls https://api.github.com/repos/lite-xl/lite-xl/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | 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=lite-xl
SITE="lite-xl/lite-xl"
version0=$(cat "/opt/$APP/version")
version=$(curl -Ls https://api.github.com/repos/lite-xl/lite-xl/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
version=$(curl -Ls https://api.github.com/repos/lite-xl/lite-xl/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | 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 3f3efed

Please sign in to comment.