mbrlabs / Lorien

Infinite canvas drawing/whiteboarding app for Windows, Linux and macOS. Made with Godot.
MIT License
5.48k stars 236 forks source link

Flatpak? #17

Open poperigby opened 3 years ago

poperigby commented 3 years ago

Feature/enhancement description:

It would definitely be useful to have this to make Linux distribution easier. There's a Godot runtime that can be used, but I was having some trouble getting it set up as there is no documentation yet.

mbrlabs commented 3 years ago

I'm mostly using Windows these days so that's not really relevant to me. Godot programs are already pretty easy to distribute anyway. But i understand that flatpak install/update lorien is pretty convenient.

I'm gonna leave this open, maybe someone wants to tackle it.

poperigby commented 3 years ago

I'll try to figure it out.

SkyeNygaard commented 2 years ago

Did you ever figure this out? I would be willing to take a look as well

marknefedov commented 2 years ago

https://github.com/markusgod/flathub/tree/new-pr I've put together files needed for submission, but as per https://github.com/flathub/flathub/wiki/App-Maintenance#acceptable-but-should-be-submitted-upstream= metadata files (desktop and appdata) should be upstreamed, and I won't be able to properly maintain flathub, so if somebody wants to help, please go ahead.

jn64 commented 2 years ago

This is my desktop file, in case it's of use to anyone.

tinywrkb commented 2 years ago

Here's an initial Flatpak packaging.
This is pretty much ready for Flathub publishing, except for a higher resolution icon. IIRC Flathub requires at least 128x128px icon.
I'm not running a desktop environment, so I have no idea if the mimetype association displays the app's icon.
If no one else is willing to publish and maintain the app, then I wouldn't mind stepping forward, but note that I don't use it, and my current Stylus solution for Linux, Apple Pencil + Weylus, doesn't work well for ATM.

jn64 commented 2 years ago

What is a Lorien file called? A Lorien canvas/whiteboard/drawing/notebook?

@tinywrkb mimetype icon must be explicitly provided since an app icon is not always suitable to represent its files. At least, this is according to shared mime info spec and works on current GNOME/Nautilus. Either:

  1. Name the icon according to the mimetype, with / replaced by -. e.g. the icon for application/lorien would go in /usr/share/icons/Adwaita/scalable/mimetypes/application-lorien.svg. No need to specify in the xml file.
  2. Or, set a different name in the xml file:
    <mime-type type="application/lorien">
    ...
     <icon name="com.github.mbrlabs.Lorien"/>
    </mime-type>

    Then it could reuse the app icon at /usr/share/icons/Adwaita/scalable/apps/com.github.mbrlabs.Lorien.svg (or it could point to a different file of course).

The paths are not necessarily /usr/share/..., could be wherever the DE looks for icons, incl home directory and Flatpak exports. And also could be specific sizes instead of scalable, and png or whatever format. For Nautilus it must be in the active icon theme (Adwaita by default) and doesn't fallback to hicolor. Don't know about other DEs/file managers or Flatpak packaging.

Demonstration of Lorien mimetype icon in GNOME Nautilus file manager

mbrlabs commented 2 years ago

What is a Lorien file called?

Lorien Canvas sounds good to me.

IIRC Flathub requires at least 128x128px icon

I also just added an svg version of the Logo, in case you need it (since the source file is an Affinity Designer file, which you might not have): https://github.com/mbrlabs/Lorien/blob/main/images/lorien.svg

jn64 commented 2 years ago

I also just added an svg version of the Logo

The svg has a large viewBox which makes the icon appear very small.

mbrlabs commented 2 years ago

@jn64 fixed

tonybolzan commented 2 years ago

@poperigby and @mbrlabs I built a Snap version of Lorien