zeal icon indicating copy to clipboard operation
zeal copied to clipboard

Provide an AppImage

Open azubieta opened this issue 5 years ago • 18 comments

AppImage is a great format for making portable applications on GNU/Linux. It would be great to have one for zeal.

If you like I can make a recipe for you :)

azubieta avatar Feb 24 '20 16:02 azubieta

There was a long discussion about this in https://github.com/zealdocs/zeal-packaging/issues/34, @probonopd posted his build recipes as well. I don't mind, but since I don't use either Ubuntu, AppImage or Travis I have never gotten to packaging.

Also personally I am not a big fan of AppImage because it targets the oldest supported Ubuntu LTS, while I only care about the most the recent LTS release, and idea of pulling third-party PPA for Qt doesn't appeal to me.

I think the best scenario would be if someone else maintained the packages, similarly to what every Linux distro does.

trollixx avatar Feb 25 '20 03:02 trollixx

I don't use either Ubuntu, AppImage or Travis

You can also use Centos and any other CI system.

it targets the oldest supported Ubuntu LTS,

There are new ways of producing AppImages now, there is no need for targeting an old system.

Will send a PR next week for you to see :)

azubieta avatar Feb 25 '20 16:02 azubieta

Will keep this open until all the tasks below are complete.

A new GitHub Action is now building AppImage for every commit to master, and uploads an associated artifact. Uploading of .zsync files is currently disabled, because I am not sure how to make updates work for CI builds, although offering some kind of "dev channel" would be nice.

There are still a few quirks to figure out:

  • [ ] Automatically pick up the correct version (now 0.6.1 is hard-coded).
  • [ ] Sign the produced AppImage.
  • [ ] Upload artifacts to releases, when a new release is created.
  • [ ] Bonus: Refactor the action into a separate repository, and use a prebuilt Docker container.

trollixx avatar Apr 21 '20 06:04 trollixx

On the Automatically picking up the correct version (now 0.6.1 is hard-coded) point. You can use environment variables in the script. So if you have a way of guessing the version from the code then you can export it to the environment before calling appimage-builder.

Check https://appimage-builder.readthedocs.io/en/latest/recipe/version_1.html#environment-variables

azubieta avatar Apr 21 '20 16:04 azubieta

Upload artifacts to releases, when a new release is created.

Uploading of .zsync files is currently disabled, because I am not sure how to make updates work for CI builds, although offering some kind of "dev channel" would be nice.

For the combination of Travis CI and GitHub Releases we have this (as the default actually) but I have never looked into GitHub Actions. @azubieta is this something you might be able to look into?

probonopd avatar Apr 23 '20 17:04 probonopd

@trollixx To get the version string from cmake, we may add the following shell commands to pkg/appimage/appimage-amd64.yml

grep 'CMAKE_PROJECT_VERSION:STATIC' ../../CMakeCache.txt | cut -d'=' -f2

wwhere CMakeCache.txt could be generated by

cmake -L ../../CMakeList.txt

if it doesn't exist.

lebensterben avatar Apr 30 '20 21:04 lebensterben

@lebensterben thank you, yes, it should be read from CMake.

Still need to decide on versioning for these releases. I am inclined to use major.minor.(patch+1)-dev.N.SHA to be more or less in compliance with the semver.

trollixx avatar Apr 30 '20 22:04 trollixx

Hi all, what is the status on the AppImage effort? Is there something holding it back from appearing on https://zealdocs.org/download.html? Can we help?

probonopd avatar May 16 '20 11:05 probonopd

@probonopd I'll release it once 0.7.0 is ready. Still need to address a few regressions from the migration to Qt WebEngine.

trollixx avatar May 17 '20 04:05 trollixx

@trollixx I see https://github.com/zealdocs/zeal/pull/1276 . Is there anywhere to download this AppImage yet? The long-awaited new version of Zeal feels so near! :)

David-Else avatar Oct 03 '20 15:10 David-Else

Hello, any update on this?

misaka00251 avatar Dec 01 '20 09:12 misaka00251

Hi! What's the status of this issue?

oclero avatar Mar 08 '21 11:03 oclero

here for the appimage :eyes:

ShrirajHegde avatar May 09 '21 17:05 ShrirajHegde

All recent CI builds have AppImage attached as an artifact.

trollixx avatar Jul 11 '21 15:07 trollixx

@trollixx The appimage seems to be working well on Centos/Rocky 8.4 :) Hope there is an official release asap, great work!

David-Else avatar Jul 13 '21 09:07 David-Else

@trollixx The appimage seems to be working well on Centos/Rocky 8.4 :) Hope there is an official release asap, great work!

where's the link

ShrirajHegde avatar Jul 13 '21 14:07 ShrirajHegde

@ShrirajHegde https://github.com/zealdocs/zeal/suites/3208003709/artifacts/74197191 , but I think it will expire, so grab it now.

David-Else avatar Jul 13 '21 21:07 David-Else

Thanks, found it

ShrirajHegde avatar Jul 13 '21 22:07 ShrirajHegde