klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
1.88k stars 291 forks source link

Provide a Flatpak for Linux #651

Open hellpe opened 4 years ago

hellpe commented 4 years ago

To put it roughly, there are two ways to easily install an app on Linux: either use the package provided by your distro, or use a solution provided by the app developers themselves, such as Flatpak. Unfortunately, my distro (Arch Linux) does not provide a package for Twine, neither does Ubuntu.

That's why I think a good solution would be to provide a Flatpak package upstream, and host it either on the Twine website or on Flathub. The official documentation has a guide to build Flatpaks from Electron apps that may be suited to Twine.

klembot commented 4 years ago

We're using electron-builder to generate Linux builds, curious if this is just a setting. I would favor hosting whatever installed on GitHub--don't really want to mess around with things like package managers or app stores (though I am happy to help people who do want to shepherd that).

hellpe commented 4 years ago

If I'm understanding this ticket correctly, there is no setting for generating Flatpaks in electron-builder yet.

DaemonPlus commented 4 years ago

There's a PKGBUILD available in the AUR for Arch Linux. Works perfectly fine, and that's what I've been using. https://aur.archlinux.org/packages/twinejs-standalone/

klembot commented 4 years ago

@hellpe does that get at what you're looking for? Not familiar with any of this except a very high level, so I'm not sure.

hellpe commented 4 years ago

@klembot an AUR PKGBUILD is helpful for advanced Arch users, but this is not a user-friendly way of installing software, and of course it only works on Arch-based distros, whereas Flatpaks can be installed on most of the popular distros, and have other advantages such as sandboxing.

The relevant ticket for electron-builder seems to be this one (the one I've previously linked is probably a duplicate).

ghost commented 4 years ago

We're using electron-builder to generate Linux builds, curious if this is just a setting. I would favor hosting whatever installed on GitHub--don't really want to mess around with things like package managers or app stores (though I am happy to help people who do want to shepherd that).

@klembot If this is the case, please consider using AppImages instead. It is also compatible on most distros. However, you can host it on GitHub and it is much 'cleaner' than providing a .zip file.

https://appimage.org/

SISheogorath commented 2 years ago

I added a PR for flathub: https://github.com/flathub/flathub/pull/2615

If this goes through, it should be available for everyone :)

SISheogorath commented 2 years ago

We are currently just waiting for an approval of @klembot that it's fine to package this app for Flathub. And I'll provide the metadata file and desktop file here so it can be maintained better/more correct. :)