Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlphaPlot in flatpak format #20

Closed
filipestevao opened this issue Sep 22, 2020 · 8 comments
Closed

AlphaPlot in flatpak format #20

filipestevao opened this issue Sep 22, 2020 · 8 comments

Comments

@filipestevao
Copy link
Contributor

Hello,
This issue is for registration purposes only.
As emailed to @narunlifescience, I successfully built AlphaPlot in flatpak format.

Here are the instructions for building:

  1. Compile and install qtdatavis3d BaseApp:
git clone --branch=io.qt.qtdatavis3d.BaseApp https://github.com/filipestevao/flathub.git qtdatavis3d
cd qtdatavis3d
flatpak-builder --repo=qtdatavis3d --force-clean --install-deps-from=flathub build-dir io.qt.qtdatavis3d.BaseApp.yml
flatpak remote-add --user qtdatavis3d qtdatavis3d --no-gpg-verify
flatpak install --user qtdatavis3d io.qt.qtdatavis3d.BaseApp -y
  1. Compile and install AlphaPlot app:
git clone --branch=io.github.narunlifescience.AlphaPlot https://github.com/filipestevao/flathub.git AlphaPlot
cd AlphaPlot
git clone https://github.com/flathub/shared-modules.git
flatpak-builder --repo=alphaplot --force-clean build-dir io.github.narunlifescience.AlphaPlot.yml
flatpak remote-add --user alphaplot alphaplot --no-gpg-verify
flatpak install --user alphaplot io.github.narunlifescience.AlphaPlot -y

I will make the pull request in the Flathub and keep informed here if everything goes well.

@narunlifescience
Copy link
Owner

👍

@filipestevao
Copy link
Contributor Author

filipestevao commented Sep 26, 2020

The maintainers of flathub suggested that metainfo.xml be added by upstream.

I'm not very good with examples, but one I know is the TeXstudio project in which appdata is upstreamed.

Another question to think about (maybe in the future) is to add /app as a directory to install. I am currently using a patch to change the /usr to /app, as seen in this diff.

@narunlifescience
Copy link
Owner

upstreamed the metainfo to the master branch. Regarding the patch I will have a look at it later. If you have a neat way of solving it, please feel free to make a pull request.
keep up the good work.

@filipestevao
Copy link
Contributor Author

Thank you. I will study this issue of the directory /app.

Updated commands for compiling and installing the AlphaPlot app:

git clone --branch=io.github.narunlifescience.AlphaPlot https://github.com/filipestevao/flathub.git AlphaPlot
cd AlphaPlot
git clone https://github.com/flathub/shared-modules.git
flatpak-builder --repo=alphaplot --force-clean --install-deps-from=flathub build-dir io.github.narunlifescience.AlphaPlot.yml
flatpak remote-add --user alphaplot alphaplot --no-gpg-verify
flatpak install --user alphaplot io.github.narunlifescience.AlphaPlot -y

@filipestevao
Copy link
Contributor Author

Hello @narunlifescience,

AlphaPlot is now available on Flathub 🎉 👏

https://flathub.org/apps/details/io.github.narunlifescience.AlphaPlot

I suggest inserting a Flathub official badges in Readme. For example:

<a href='https://flathub.org/apps/details/io.github.narunlifescience.AlphaPlot'><img width='240' alt='Download on Flathub' src='https://flathub.org/assets/badges/flathub-badge-en.png'/></a>

Now I will dedicate to maintaining the app on Flathub in the next releases and also help with improvements and bug fixes. I will no longer maintain the AppImage format.

@narunlifescience
Copy link
Owner

nice work!
added the badge to Readme. Feel free to make a pull request for improvements and bug fixes. I will close this issue then.

@filipestevao
Copy link
Contributor Author

A test build of the latest AlphaPlot commits is available in Flathub Beta.

To install applications from the beta branch:

flatpak remote-add flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo

Search for alphaplot and choose flathub-beta:

flatpak install alphaplot

If you install both the beta and the stable version of an app then they will be installed in parallel. However, only one will be showed in the menus. You can switch which one is currently showed like this [ref.]:

flatpak make-current io.github.narunlifescience.AlphaPlot stable
flatpak make-current io.github.narunlifescience.AlphaPlot beta

But from the command line you can always start any installed version explicitly, like this:

flatpak run io.github.narunlifescience.AlphaPlot//stable
flatpak run io.github.narunlifescience.AlphaPlot//beta

@narunlifescience
Copy link
Owner

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants