Skip to content

Commit

Permalink
Update signal
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Oct 24, 2024
1 parent 3f3efed commit 8c369f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions programs/x86_64/signal
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# AM INSTALL SCRIPT VERSION 3.5
set -u
APP=signal
SITE="Twig6943/Signal-AppImage"
SITE="karo-solutions/Signal-Desktop-AppImage"

# CREATE DIRECTORIES AND ADD REMOVER
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
Expand All @@ -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/Twig6943/Signal-AppImage/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/karo-solutions/Signal-Desktop-AppImage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
wget "$version" || exit 1
# Keep this space in sync with other installation scripts
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
Expand All @@ -31,9 +31,9 @@ cat >> ./AM-updater << 'EOF'
#!/bin/sh
set -u
APP=signal
SITE="Twig6943/Signal-AppImage"
SITE="karo-solutions/Signal-Desktop-AppImage"
version0=$(cat "/opt/$APP/version")
version=$(curl -Ls https://api.github.com/repos/Twig6943/Signal-AppImage/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/karo-solutions/Signal-Desktop-AppImage/releases | 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 command -v appimageupdatetool >/dev/null 2>&1; then
cd "/opt/$APP" || exit 1
Expand Down

0 comments on commit 8c369f0

Please sign in to comment.