-
Notifications
You must be signed in to change notification settings - Fork 47
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
AppImage package #25
Comments
Can this app be built on CentOS 6? If so, how? (Building on CentOS 6 is a good way to ensure binary compatibility with a wide variety of desktop Linux distributions.) |
Based on some light searching the EPEL repo for CentOS 6, trying to build Notes-Up on CentOS 6 may not be possible. Notes-Up requires the vala 0.26 version. The latest version for Vala is 0.10 in the EPEL repo [1]. Right now I am currently testing the application out in Ubuntu. Next week I will start on trying to get the application running on Fedora Gnome. [1] https://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/vala.html |
Yeah, if AppImages does what i think it does, it should solve: #29 #27 #24, so im going to mark those as "Duplicates" for now, and close them so this can be the main bug tread 😄 If with AppImage it all works and it fixes everything then great! If not then it will not have support :P See: http://www.birdieapp.eu/2016/01/23/building-our-future-on-elementary-os.html |
I will look into AppImage this week then. |
@demonpig: Thank you for your help Max! 😃 |
@demonpig still working on this? |
Ping @demonpig |
Hey guys, I am really, really sorry for being absent all this time. I dont have an excuse besides just forgetting all about this. I will be trying to get it packaged this weekend for AppImage. Will update this thread on Sunday of the results. |
@demonpig I really appreciate that, thanks :) And don't worry |
OK. So the weekend was a lot more busy than I would have liked. But I was able to get Notes-up packaged into an AppImage. The base OS that I am using is elementary 0.3.2 (Freya). When I try to run the AppImage on openSUSE Leap 42.2 I was getting an error message:
So I still have some more work to do to get it properly packaged. |
Ahh yeah, that's a problem with using Granite.Settings. If the schema is not installed, it causes that error since it expects it to be installed If you want to get rid of it for now, you can change 'Granite.Services.Settings' to 'Object' in https://github.com/Philip-Scott/Notes-up/blob/master/src/Services/Settings.vala, and give some default values to the properties. But hopefully you'll be able to package it properly :) Thank you for your time btw! |
Well I solved the schema not installed issue. I had to run the following command:
The file path is local to the AppImage. Now I am working on other issues:
This is me trying to run the newly packaged AppImage on openSUSE 42.2 Gnome Edition. |
I can get rid of contractor using compiler flags such as Contractor is a utility to allow apps passing things to other apps easily such as Send by Email, Compress and other actions, but it's really an elementary thing |
Would that be something easy to implement? I am not too handy with CMake or Vala. I think we are almost there with packaging this into an AppImage. I will look into the libpango issue. |
I honestly have no idea on how to set them up using CMake, but iirc there is at least another elementary project using them. So I'll look into that :) (I probably won't have time this week though... I'm on my last week of the semester) If i'm not mistaken, if you remove this block of code it should get rid of the contractor problem. The compiler flag i set up will basically just get rid of those lines |
I will try that and re-compile and repackage to see if that works. Good luck with exams! |
So I have added a conditional compilation statement around the Contractor-specific code. In other words, the program can be compiled without using Contractor. I will submit a pull request on Sunday for review. Just want to clean up the sloppy code i wrote. |
I am so sorry, i completely forgot about it until i got your email. With the newest branch, you should be able to run It's currently on the Plugins branch since that the current development branch while i'm using master as "stable" :) |
LOL. OK. I will work with that branch then. |
Sorry that I have not been working on this. I will back around to working on this next month. |
Got an initial script that will build an AppImage for Notes-Up. This is still experimental as I need to figure out what dependencies need to be bundled with the image. |
@demonpig can I have a look at your script? Where is it? |
@probonopd The AppImage is built on Elementary OS 0.4.1. Link: https://github.com/demonpig/AppImages/blob/add_notes-up/recipes/notes-up/Recipe |
Have a look at linuxdeployqt. It works on non-Qt applications, too, and copies in the required libraries for you. https://github.com/probonopd/linuxdeployqt |
@probonopd I wonder if I am doing something wrong with the linuxdeployqt program as it did not copy any required libraries into the AppDir directory. What i did notice is that it took care of setting up the AppRun, desktop file, and application icon. Once the linuxdeployqt program was done running, I ran the appimagetool to create the app image. But the AppImage does not run since Notes-Up will fail if it detects that the gsettings schema is not installed. |
@Philip-Scott Thanks for this useful tool. I wanted to try it but couldn't get it to run on Mint 18.x with Mate Desktop (Gnome 2). However because there was no way to install it properly on my setup, I made a docker image and a script to run it in a container. I figured that it might be helpful for those who can't run it because of a missing dependency. You can find everything needed to run it in a docker container here: https://github.com/leoek/docker-notes-up *edit posting it here because this was the thread which was marked as duplicate of all the issue about installing it on not elementary (#29 #27 #24) and running it in a container should help with these issues too. |
@probonopd I was able to fix the issue that I had previously. Once linuxdeployqt is done doing its thing, I simply replace AppRun with a shell script that sets
I have set the I have never used TravisCI before so tonight I will learn about it and get something setup on it this week. Link: https://github.com/demonpig/AppImages/blob/add_notes-up/recipes/notes-up/Recipe Notes:
|
@demonpig yes that's a way to do it. Can you build on Ubuntu 14.04 please? That way the AppImage will become more compatible to older target systems (such as the oldest still-supported LTS), and hopefully the HarfBuzz error will go away, too. If it doesn't, then we need to reconsider what we need to bundle. Possibly we need to bundle |
So, according to the error above, the |
Actually you seem to be doing this here Probably this is an issue in linuxdeployqt and we should change to either not bundle HarfBuzz, or also bundle |
@probonopd To tell you the truth, I do not believe it will compile on Ubuntu 14.04 due to a dependency of webkit2gtk-4.0 which was merged as of this commit 761b32c. I will give it a shot though once I can get a working AppImage on Loki. |
Flatpak is available on pretty much every system, provides good sandboxing, leads to less issues as versions dependencys are pretty clear, and most important, this approach doesn’t lead to the users thinking they should download random software from the internet, mark it as executable and run it (what is the root issue of malware on windows machines). |
@fbruetting The issue was submitted on march 2016, at this time Flatpack wasn't heavily deployed as it is right now. I agree with you about the benefits of Flatpack, btw i'm using Notes-up flatpack since Fedora 26 ;-) |
@TomBous will you still provide an AppImage for the rest of us who don't run Flatpak? |
Is this a no @Philip-Scott? An AppImage is missing from https://github.com/Philip-Scott/Notes-up/releases but this was closed without comment. |
Ahh looked like I never sent the message. I'm closing it since no progress has been done since 2017, and the flatpak that's available just works Here's the link for the flatpak page where you can install it: https://flathub.org/apps/details/com.github.philip_scott.notes-up |
@Philip-Scott Did you check out my solution, with running this inside a docker container: #25 (comment) ? Should I put a merge Request together to document that option and/or add the script and Dockerfile to this repository? |
It's nice that there is a Flatpak but AppImage serves a very different purpose. So I'd still be interested in seeing one. |
@leoek Honestly, imo docker isn't the best way to run this application, while it works it's honestly a super hacky way to do it xD (But its a very cool way to run UI apps :) I once ran Spotify like that!) But since I'd honestly won't endose it as an official way to run it, hope you understand :) @probonopd What other different purpose? The purpose is just being able to bring the app to users right? I think that the PPA, Flatpak and the package also being available in OpenSUSE and Arch should be good enough IMO |
@Philip-Scott Don’t get fooled by @probonopd, he’s just trying to get your application on his stupid list on his appimages website. He’s posting these kind of requests in hundreds of repositories – so it’s pretty obvious, that he personally has no interest in Notes-up at all, and instead just tries to waste your time solely for the purpose of bragging more with his appimages. As you can see, he also has no arguments, and the ridiculous advantages he lists on his website are mostly made up. Just look and you will see. |
@leoek Containers are things for server applications, i.e. programs that for example require webservers or databases or have to serve a lot of clients. The equivalent to containers for normal applications are Flatpaks – the systems behind those techniques are partly the same. You might try out GTK Broadway, it you want to run GTK applications in browsers. And you might want to try out Podman instead of Docker, by the way – there you can get rootless (i.e. more secure) containers and everything is not tied to a single daemon. |
@fbruetting I respectfully request that you don't spread FUD. I am personally interested helping application developers ship their software to end users in a straightforward way that does not need app stores and the like and that works on Live ISOs (which I use myself every day), and I have helped hundreds of projects (including well-known ones like Inkscape) to do this. The original poster asked for an AppImage, and so do I. Also, I'm happy to help. |
@Philip-Scott I understand if you don't want it in the repository, although I don't really think of it, as a "hacky way" to run it. @fbruetting Containers are not only for servers ;) Flatpak is basically kind of a container solution too. (as you even mentioned) |
I know this app is intended for Elemenary, but it would be awesome to have an AppImage package for other distributions.
Have a look : http://appimage.org/
I would love to be able to use your app on Fedora.
Thx anyway for your hard work !
The text was updated successfully, but these errors were encountered: