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
PKGNAME=figma-linux
SUPPORTEDARCHES="x86_64"
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="Figma-linux - an unofficial Electron-based Figma desktop app for Linux"
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)"
# https://github.com/Figma-Linux/figma-linux/releases/download/v0.10.0/figma-linux_0.10.0_linux_x86_64.rpm
# https://github.com/Figma-Linux/figma-linux/releases/download/v0.10.0/figma-linux_0.10.0_linux_amd64.deb
case "$pkgtype" in
rpm)
file="${PKGNAME}_${VERSION}_linux_x86_64.$pkgtype"
;;
*)
pkgtype="deb"
file="${PKGNAME}_${VERSION}_linux_amd64.$pkgtype"
;;
esac
if [ "$pkgtype" == "rpm" ] ; then
case "$(epm print info -a)" in
x86_64)
file="${PKGNAME}_${VERSION}_linux_x86_64.$pkgtype" ;;
aarch64)
file="${PKGNAME}_${VERSION}_linux_aarch64.$pkgtype" ;;
esac
elif [ "$pkgtype" == "deb" ] ; then
case "$(epm print info -a)" in
x86_64)
file="${PKGNAME}_${VERSION}_linux_amd64.$pkgtype" ;;
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")
......
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