Skip to content

Commit 26937a4

Browse files
authored
Merge pull request #2046 from shuvashish76/patch-2
Update Affinity script
2 parents c7bd052 + 210061c commit 26937a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

programs/x86_64/affinity

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# AM INSTALL SCRIPT VERSION 3.5
44
set -u
55
APP=affinity
6-
SITE="ryzendew/AffinityOnLinux"
6+
SITE="ryzendew/Linux-Affinity-Installer"
77

88
# CREATE DIRECTORIES AND ADD REMOVER
99
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
@@ -12,7 +12,7 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
1212
chmod a+x ../remove || exit 1
1313

1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
15-
version=$(curl -Ls https://api.github.com/repos/ryzendew/AffinityOnLinux/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*download.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
15+
version=$(curl -Ls https://api.github.com/repos/ryzendew/Linux-Affinity-Installer/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
1616
wget "$version" || exit 1
1717
# Keep this space in sync with other installation scripts
1818
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
@@ -31,9 +31,9 @@ cat >> ./AM-updater << 'EOF'
3131
#!/bin/sh
3232
set -u
3333
APP=affinity
34-
SITE="ryzendew/AffinityOnLinux"
34+
SITE="ryzendew/Linux-Affinity-Installer"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://api.github.com/repos/ryzendew/AffinityOnLinux/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*download.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
36+
version=$(curl -Ls https://api.github.com/repos/ryzendew/Linux-Affinity-Installer/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if command -v appimageupdatetool >/dev/null 2>&1; then
3939
cd "/opt/$APP" || exit 1

0 commit comments

Comments
 (0)