[Packaging] Script to create a flatpak package (for the GTK frontend)
Created by: Andres G. Aragoneses
Imported comments:
By Andres G. Aragoneses on 2019-01-29T07:41:38.136Z
Last but not least: geewallet builds fine with 'xbuild' (provided by Mono), i.e. the bleeding-edge 'msbuild' is not a hard requirement.
A small remark about this bit: geewallet's console frontend (and backend) builds fine with xbuild, but I haven't tested building the GTK wallet with xbuild, only with msbuild.
By Andres G. Aragoneses on 2019-01-05T12:49:38.721Z
changed title from [Packaging] Script to create a flatpak or a snap package (for the GTK frontend) to [Packaging] Script to create a flatpak package (for the GTK frontend)
By Andres G. Aragoneses on 2018-11-05T11:44:42.536Z
changed title from [Packaging] Script to create a flatpak or a snap package to [Packaging] Script to create a flatpak or a snap package (for the GTK frontend)
By Andres G. Aragoneses on 2018-11-05T08:54:17.234Z
A good starting point on flatpak work can be SparkleShare's flatpak: https://github.com/hbons/org.sparkleshare.SparkleShare/
One fundamental difference between SparkleShare and geewallet, though, is that the latter is written in F# instead of C#. It's worth mentioning that Timotheus Pokorra, an opensource contributor, tried to work on this (flatpak in particular), and found a bit of difficulty with this, because to build fsharp, you need msbuild, and I've heard building msbuild may require .NET Core (instead of Mono).
However:
a) These are just compile-time dependencies. geewallet, when being run by the user, doesn't require an F# compiler. And Ubuntu 18.04 already has an official fsharp (and fsharpi) package. Cannot a flatpak just depend on deb/rpm packages (just when being built)?
b) Even if my deliberations in (a) are not useful, a workaround to this might be the following: there's a nuget package called "FSharp.Compiler.Tools" that bundles the F# compiler executable (fsc.exe), so this could be used. Ideally, the build should not depend on binary blobs, but geewallet already depends on nuget packages (binary dependencies), so we wouldn't be making things much worse anyway. (NB: I plan to work on a source-only build mode, in the future.) Last but not least: geewallet builds fine with 'xbuild' (provided by Mono), i.e. the bleeding-edge 'msbuild' is not a hard requirement.
By Andres G. Aragoneses on 2018-11-05T08:42:10.922Z
changed title from [Packaging] Script to create a flatpak package to [Packaging] Script to create a flatpak or a snap package