Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Latest commit

 

History

History
65 lines (50 loc) · 1.89 KB

FLATPAK.md

File metadata and controls

65 lines (50 loc) · 1.89 KB

Flatpak

Instructions regarding Flatpak build and deployment.

Dependencies

  • 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

Build

Development

To build the development version of the app for Flatpak:

$ flatpak-builder flatpak_build build-aux/dev.edfloreshz.Done.Devel.json

Release

To build the release version of the app for Flatpak:

$ flatpak-builder flatpak_build build-aux/dev.edfloreshz.Done.json

Test the build

To verify that the build was successful, run the following:

Development

$ flatpak-builder --user --install --force-clean flatpak_build build-aux/dev.edfloreshz.Done.Devel.json
$ flatpak run dev.edfloreshz.Done.Devel

Release

$ flatpak-builder --user --install --force-clean flatpak_build build-aux/dev.edfloreshz.Done.json
$ flatpak run dev.edfloreshz.Done

Release to Flathub

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.