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

Please provide an AppImage for download #1

Closed
probonopd opened this issue Mar 3, 2018 · 29 comments
Closed

Please provide an AppImage for download #1

probonopd opened this issue Mar 3, 2018 · 29 comments

Comments

@probonopd
Copy link

probonopd commented Mar 3, 2018

We need to add package for this app.Appimage is in top priority.so if any one could guide us how to do that it will be helpful.

Can you get corebox to build on Ubuntu 14.04 (trusty) on Travis CI using linuxdeployqt and Qt from https://launchpad.net/~beineri/+archive/ubuntu/opt-qt594-trusty similar to what is shown on https://github.com/probonopd/linuxdeployqt/blob/master/README.md#using-linuxdeployqt-with-travis-ci?

Please let me know if you are running into any issues.

@rahmanshaber
Copy link
Owner

Please review the .travis.yml

@probonopd
Copy link
Author

https://travis-ci.org/rahmanshaber/corebox/builds/348700469#L519 suggests that some more packages need to be installed in

https://github.com/rahmanshaber/corebox/blob/master/.travis.yml#L11

such as qt59multimedia and qt59charts-no-lgpl.

@rahmanshaber
Copy link
Owner

ok. latest build finds all the dependencies .
i don't understood the errors

@probonopd
Copy link
Author

Latest error is:

corefm/mimeutils.cpp:22:19: fatal error: magic.h: No such file or directory
 #include <magic.h>
                   ^
compilation terminated.

Probably you need to install libmagic-devin https://github.com/rahmanshaber/corebox/blob/master/.travis.yml#L11.

@rahmanshaber
Copy link
Owner

now what's the error ??

@probonopd
Copy link
Author

https://travis-ci.org/rahmanshaber/corebox/builds/348888136#L861 suggests that libpulse-dev may be missing.

@rahmanshaber
Copy link
Owner

rahmanshaber commented Mar 4, 2018

now now!!!
i build that in arch packaging it buid fine with icon error.
but package dose not have icon.

is my corebox.desktop has some problem??
could you see the error file??

@probonopd
Copy link
Author

Great, it has been compiled successfully. Now, CoreBox.desktop needs some love:

  • Value "Qt;Utility" for string list key "Categories" in group "Desktop Entry" does not have a semicolon (';') as trailing character --> End this line with a ; character to fix this
  • value "coreBox.svg" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path --> Remove the .svg from the Icon= line
  • warning: value "" for key "Path" in group "Desktop Entry" does not look like an absolute path --> Remove the line starting with Path=

@rahmanshaber
Copy link
Owner

now good??

`[Desktop Entry]
GenericName=CoreBox
Type=Application
Name=CoreBox
Name[de]=CoreBox
Name[sr]=CoreBox
Name[sr@ijekavian]=CoreBox
Name[sr@latin]=CoreBox
Name[sr@ijekavianlatin]=CoreBox
Name[zh_TW]=CoreBox
Categories=Qt;Utility;
Name[en_US.utf8]=CoreBox

Comment=A bunch of common desktop application
Exec=coreBox
Icon=coreBox
Terminal=false
StartupNotify=false
`

@probonopd
Copy link
Author

Looks about right, but to be sure please run it through the desktop-file-validate tool. (I am not in front of a Linux machine right now.)

@rahmanshaber
Copy link
Owner

is that an app??

@probonopd
Copy link
Author

@rahmanshaber
Copy link
Owner

hurray build is finished successfully.
now where is the appimage?

@probonopd
Copy link
Author

probonopd commented Mar 4, 2018

You need to tell the upload script to upload CoreBox*.AppImage* in

- bash upload.sh APPNAME*.AppImage*

So, replace APPNAME with CoreBox.

@rahmanshaber
Copy link
Owner

any suggestion or example of upload.sh?
could i upload to google drive?
or email me the file?

@probonopd
Copy link
Author

Please change the line from

bash upload.sh APPNAME*.AppImage*

to

bash upload.sh CoreBox*.AppImage*

This is all you need to change in .travis.yml.

@rahmanshaber
Copy link
Owner

rahmanshaber commented Mar 4, 2018

where it uploaded after build?

@probonopd
Copy link
Author

probonopd commented Mar 4, 2018

https://travis-ci.org/rahmanshaber/corebox/builds/348940295#L1136

For this to work, you need to enable Travis CI for your repository as described here, if you haven't already done so. Also, You need to set up GITHUB_TOKEN in Travis CI for this to work; please see https://github.com/probonopd/uploadtool.

Once you have done that, it will show up on https://github.com/rahmanshaber/corebox/releases automatically after each git push.

It's really not hard to set up.

@rahmanshaber
Copy link
Owner

please review the
https://github.com/rahmanshaber/corebox/blob/master/.travis.yml
please i need the appimage badly.
thanks for the help.

@probonopd
Copy link
Author

In the log file of the latest build I see:

Setting environment variables from repository settings
$ export travis-ci=[secure]
The previous command failed, possibly due to a malformed secure environment variable.
Please be sure to escape special characters such as ' ' and '$'.
For more information, see https://docs.travis-ci.com/user/encryption-keys.

Please make sure that the token is entered correctly into Travis CI, especially there are not extra blanks at the beginning or the end (this happens frequently). Best delete the token and enter it again, making sure there are no blanks at the beginning or the end.

@rahmanshaber
Copy link
Owner

i don't think i will ever get there

@probonopd
Copy link
Author

I think you are almost there, in fact. Only thing missing is the proper GitHub token in the Travis CI settings.

@probonopd
Copy link
Author

Thanks for providing an AppImage. However, it likely was built on a too new version so that it refuses to run even on Ubuntu 16.04:

$ /home/me/Downloads/CoreBox-x86_64.AppImage
/home/me/Downloads/CoreBox-x86_64.AppImage: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /tmp/.mount_CoreBousxMx2/lib/libQt5Core.so.5)
/home/me/Downloads/CoreBox-x86_64.AppImage: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /tmp/.mount_CoreBousxMx2/lib/libpng16.so.16)
/home/me/Downloads/CoreBox-x86_64.AppImage: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /tmp/.mount_CoreBousxMx2/lib/libsystemd.so.0)

Please build on the oldest still-supported version of Ubuntu LTS, which is currently 14.04, thanks.

Reference:
AppImage/appimage.github.io#449

@rahmanshaber
Copy link
Owner

rahmanshaber commented Mar 16, 2018 via email

@probonopd
Copy link
Author

probonopd commented Mar 17, 2018

Please build on the oldest still-supported version of Ubuntu LTS, which is currently 14.04, thanks.

why the appimage is not including all this package??

While in theory you could bundle everything inside an AppImage, most people choose to not bundle basic system libraries that can be expected to be present on each target system (in order to get smaller AppImages and have less duplication of code). But this means that you need to compile on the oldest still-supported target system, because a Linux application can generally run on newer, but not on older systems than the one the application was compiled for. See https://en.wikipedia.org/wiki/Backward_compatibility

i want the latest qt for my app . so i think 18.04 will be the right
platform.

No. Please always use the oldest still-supported Ubuntu version, which is 14.04 at the moment. There is the latest Qt 5.9.x available for it as described in https://github.com/probonopd/linuxdeployqt/

@rahmanshaber
Copy link
Owner

rahmanshaber commented Mar 17, 2018 via email

@probonopd
Copy link
Author

is there any way to set the font of the app?? i saw in appimage font is not
same as my build one.

Do you mean the fonts from the Gtk+ theme with the "correct" fonts?

@rahmanshaber
Copy link
Owner

yes

@probonopd
Copy link
Author

This used to work in older Qt versions, but at least the more recent builds don't do this anymore. We are aware of the issue but don't have the solution yet, see AppImageCommunity/pkg2appimage#88. This is not limited to AppImage but a more general Qt question.

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