wow
This commit is contained in:
parent
719080e04c
commit
4a80f54c41
1 changed files with 13 additions and 3 deletions
|
|
@ -6,11 +6,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "figma-linux";
|
pname = "figma-linux";
|
||||||
version = "126.5.6";
|
version = "126.10.10";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/IliyaBrook/figma-linux/releases/download/${version}/figma-desktop-${version}-amd64.AppImage";
|
url = "https://github.com/IliyaBrook/figma-linux/releases/download/${version}/figma-desktop-${version}-amd64.AppImage";
|
||||||
hash = "sha256-SLn4y+NVCcBDZrGqIpmpIEQavY7xngt5JMI8yG1g6/0=";
|
hash = "sha256-Qc1VIbRsVse91Hb0OtheY7KheoPObkvJkwxF4ZppGxk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extract {
|
appimageContents = appimageTools.extract {
|
||||||
|
|
@ -34,7 +34,17 @@ appimageTools.wrapAppImage {
|
||||||
install -Dm444 ${appimageContents}/usr/share/applications/io.github.nickvdp.figma-desktop-linux.desktop \
|
install -Dm444 ${appimageContents}/usr/share/applications/io.github.nickvdp.figma-desktop-linux.desktop \
|
||||||
-t $out/share/applications
|
-t $out/share/applications
|
||||||
substituteInPlace $out/share/applications/io.github.nickvdp.figma-desktop-linux.desktop \
|
substituteInPlace $out/share/applications/io.github.nickvdp.figma-desktop-linux.desktop \
|
||||||
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
|
--replace-fail 'Exec=AppRun' 'Exec=${pname} %U'
|
||||||
|
|
||||||
|
# The AppImage's runtime desktop integration is disabled above so that
|
||||||
|
# figma:// links use this package's FHS wrapper. Register the URI scheme
|
||||||
|
# explicitly and pass the callback URL through to Electron.
|
||||||
|
if ! grep -q '^MimeType=.*x-scheme-handler/figma' \
|
||||||
|
$out/share/applications/io.github.nickvdp.figma-desktop-linux.desktop; then
|
||||||
|
substituteInPlace $out/share/applications/io.github.nickvdp.figma-desktop-linux.desktop \
|
||||||
|
--replace-fail '[Desktop Entry]' \
|
||||||
|
'[Desktop Entry]\nMimeType=x-scheme-handler/figma;'
|
||||||
|
fi
|
||||||
|
|
||||||
install -Dm444 ${appimageContents}/io.github.nickvdp.figma-desktop-linux.png \
|
install -Dm444 ${appimageContents}/io.github.nickvdp.figma-desktop-linux.png \
|
||||||
$out/share/icons/hicolor/256x256/apps/io.github.nickvdp.figma-desktop-linux.png
|
$out/share/icons/hicolor/256x256/apps/io.github.nickvdp.figma-desktop-linux.png
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue