Instructions regarding Flatpak build and deployment.
org.gnome.Platform
org.freedesktop.Sdk.Extension.rust-stable
The current version of
org.gnome.Platform
is 45.
Install the following dependencies:
$ flatpak install --runtime org.gnome.Platform org.freedesktop.Sdk.Extension.rust-stable
To build the development version of the app for Flatpak:
$ flatpak-builder flatpak_build build-aux/dev.edfloreshz.Done.Devel.json
To build the release version of the app for Flatpak:
$ flatpak-builder flatpak_build build-aux/dev.edfloreshz.Done.json
To verify that the build was successful, run the following:
$ flatpak-builder --user --install --force-clean flatpak_build build-aux/dev.edfloreshz.Done.Devel.json
$ flatpak run dev.edfloreshz.Done.Devel
$ flatpak-builder --user --install --force-clean flatpak_build build-aux/dev.edfloreshz.Done.json
$ flatpak run dev.edfloreshz.Done
To make a release to Flathub, run flatpak.sh
, take the files and upload them to the new release.
Once they are uploaded, edit dev.edfloreshz.Done.json
and replace the url
of the source
with the new link of the tar.xz
file uploaded to the release.
Remember to replace hash
with a newly generated hash for the tar.xz
file:
$ sha256sum done-release.tar.xz
"sources" : [
{
"type" : "archive",
"url" : "https://github.com/done-devs/done/releases/download/version/done-release.tar.xz", // New download url
"sha256" : "dcb976ea39287790728399151a9c30926e242a01fa9c68f13ff1d95b48fb2b1f" // New hash
}
]
Then, push changes to https://github.com/flathub/dev.edfloreshz.Done.