Commit 060dc123 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add figma

parent b2cb8c4a
#!/bin/sh
PKGNAME=figma-linux
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Figma-linux - an unofficial Electron-based Figma desktop app for Linux"
URL="https://github.com/Figma-Linux/figma-linux"
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] && VERSION="[0-9]*"
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"
;;
deb)
file="${PKGNAME}_${VERSION}_linux_amd64.$pkgtype"
;;
*)
pkgtype="deb"
file="${PKGNAME}_${VERSION}_linux_amd64.$pkgtype"
;;
esac
PKGURL=$(epm tool eget --list --latest https://github.com/Figma-Linux/figma-linux/releases $file) || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
epm install $repack "$PKGURL" || exit
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common-chromium-browser.sh
add_bin_link_command
fix_desktop_file
fix_chrome_sandbox
add_electron_deps
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