-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Integrate AppImage generation tools into IDEs and build tools and services #160
Comments
Yes! I love this idea. How about GNOME Builder? |
Added |
While IDE integration would be very welcome, I think lower-level integration via build systems like Make and CMake would be more useful in practice. Everyone has their personal favourite IDE (or none if they prefer text editors and the command line), so the AppImage build process needs to be IDE-agnostic. The best (most portable) solution would be for AppImageKit to provide a series of generic build scripts that could be called via a special Makefile target. (Here's the target I made for MuseScore.) IDE integration would just take the form of a special "Build AppImage" button that would run the Makefile target. Note that some build systems (e.g. CMake) support the DESTDIR mechanism for installing to a non-standard location. Take the source code for any program which obeys DESTDIR and do this: ./configure
make
make DESTDIR=$(pwd)/Program.AppDir/usr install Result: the program is installed to So now all that's needed is a way to add the necessary libraries. |
True @shoogle. Can you help? In the ideal world we would have some sort of cross-compiler system that would use recent versions of CMake and the like to build for mature systems like CentOS 6, debian oldstable etc. to ensure maximum binary compatibility. Right now this is way over my head though. |
Hi @probonopd. I've successfully generated the From your AppImageUpdate README:
I've already downloaded Should I run it that command just after building the .AppImage over it? Should |
Hi @cgalvarez and welcome to AppImage. Please try |
Thanks for your help, @probonopd. Took it just after writing the comment. If I bundle |
@cgalvarez can you update the AppImage by using AppImageUpdate outside of your AppImage? I understand that you want to make the AppImage update "itself" without the need for an external AppImageUpdate.AppImage. Correct? In that case, you currently need to bundle curl (at least until someone closes probonopd/zsync-curl#9 - should not be hard), zsync_curl, and appimageupdate. Possibly you might want to bundle appimageupdategui as well, to have a GUI updater. Then you need to point the updater to the AppImage that is currently being used ("itself"). You can use the environment variable |
@probonopd Yes, I'tve tested updating my AppImage from outside (from the command line in local) successfully. You're right. I want to make the AppImage update itself without any intervention, so it should point to itself (what I was poorly saying *wherever the user wants to download it, sorry). Didn't know about the env var I was getting the path through the command Tomorrow I will git it another try. Thank you very much for your explanations and your promptness. |
Hello, |
Hello @hbirchtree welcome and thanks for your CMake script. Could you give some step-by-step instructions for people not familiar with CMake on how to use it, e.g., to package a simple "hello world" app like https://gist.github.com/fracek/3323924? |
@probonopd here you go:
After this, the .AppImage will be found in the package/linux-appimage directory (configurable with cached variables) |
Thank you very much @hbirchtree, your help is really appreciated. I have commented on some issues I identified on https://gist.github.com/hbirchtree/afada1b4886a79abac3e2771773059e3 |
We should have a deep look at |
Started to work on linuxdeployqt. Please test, review, and send pull requests, and discuss it in #qt-labs on IRC. |
|
CMake's CPack can produce https://cmake.org/Wiki/CMake:CPackPackageGenerators#Bundle_.28OSX_only.29 Any volunteers? |
AppImageAssistant has been replaced by |
Now that we have CMake experts @TheAssassin @azubieta do you think we could make an AppImage equivalent of https://cmake.org/Wiki/CMake:CPackPackageGenerators#Bundle_.28OSX_only.29? |
You're clearly mistaking "average CMake skills" for "is able to write a CPack module". |
I've started the work to add AppImage support to CPack here: https://gitlab.kitware.com/cmake/cmake/merge_requests/2645/ It's definitely not polished yet but it's still usable for early testing. I'll try find time to get it cleaned up and into the next CMake release. |
Very cool. Will check it out more detailedly soon, but at a first glance, this looks quite good for an alpha version. You should check out https://github.com/linuxdeploy/linuxdeploy as a (more modern and flexible) alternative to linuxdeployqt. linuxdeploy is less monolithic, it only bundles binary dependencies and a few auxiliary data (like desktop files, icons, soon probably even AppStream). I hope that shows why it's a lot more flexible than linuxdeployqt. Oh, and btw, linuxdeploy is way better tested. |
Thanks for the tip. I wasn't aware of linuxdeploy. I'll check it out when I get a chance. Eventually the AppImage CPack generator could support multiple tools depending on what it can find on the system, but initially it probably makes sense to keep it simple and support just one (linuxdeploy sounds like the best option) |
@nocnokneo This is really great news! We will love to help you, please drop by the appimage channel at freenode if you need anything. |
Welcome to AppImage, @nocnokneo. Great work! |
AppImage within Cpack would be ideal! |
Check out
(I don't really know anything about it, CMake is a |
Currently can integrated with CMake by using CPack External Generator. You can take a look at this gist for an example. This is how I personally integrated it into my Qt project. |
It would be nice if we could make it super easy for developers to produce AppImages. For this, integration into IDEs like Qt Creator and build tools like electron-builder might be helpful. Let's collect tools for which this might be useful here (please feel free to add!).
I am happy to help any upstream IDE or build tool wishing to integrate AppImage generation.
The text was updated successfully, but these errors were encountered: