Commit e839f940 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play: fix figma deb package link and add pacman package (eterbug #17399)

parent b0d7bad8
#!/bin/sh #!/bin/sh
PKGNAME=figma-linux PKGNAME=figma-linux
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2" VERSION="$2"
DESCRIPTION="Figma-linux - an unofficial Electron-based Figma desktop app for Linux" DESCRIPTION="Figma-linux - an unofficial Electron-based Figma desktop app for Linux"
URL="https://github.com/Figma-Linux/figma-linux" URL="https://github.com/Figma-Linux/figma-linux"
...@@ -12,18 +12,28 @@ URL="https://github.com/Figma-Linux/figma-linux" ...@@ -12,18 +12,28 @@ URL="https://github.com/Figma-Linux/figma-linux"
pkgtype="$(epm print info -p)" pkgtype="$(epm print info -p)"
# https://github.com/Figma-Linux/figma-linux/releases/download/v0.10.0/figma-linux_0.10.0_linux_x86_64.rpm if [ "$pkgtype" == "rpm" ] ; then
# https://github.com/Figma-Linux/figma-linux/releases/download/v0.10.0/figma-linux_0.10.0_linux_amd64.deb case "$(epm print info -a)" in
x86_64)
case "$pkgtype" in file="${PKGNAME}_${VERSION}_linux_x86_64.$pkgtype" ;;
rpm) aarch64)
file="${PKGNAME}_${VERSION}_linux_x86_64.$pkgtype" file="${PKGNAME}_${VERSION}_linux_aarch64.$pkgtype" ;;
;; esac
*) elif [ "$pkgtype" == "deb" ] ; then
pkgtype="deb" case "$(epm print info -a)" in
file="${PKGNAME}_${VERSION}_linux_amd64.$pkgtype" x86_64)
;; file="${PKGNAME}_${VERSION}_linux_amd64.$pkgtype" ;;
esac aarch64)
file="${PKGNAME}_${VERSION}_linux_arm64.$pkgtype" ;;
esac
elif [ "$pkgtype" == "pacman" ] ; then
case "$(epm print info -a)" in
x86_64)
file="${PKGNAME}_${VERSION}_linux_x64.$pkgtype" ;;
aarch64)
file="${PKGNAME}_${VERSION}_linux_aarch64.$pkgtype" ;;
esac
fi
PKGURL=$(eget --list --latest https://github.com/Figma-Linux/figma-linux/releases "$file") PKGURL=$(eget --list --latest https://github.com/Figma-Linux/figma-linux/releases "$file")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment