AppImageCommunity / pkg2appimage

Tool and recipes to convert existing deb packages to AppImage
http://appimage.org
MIT License
691 stars 213 forks source link

Feature suggestion for pkg2appimage script #289

Open sudo-give-me-coffee opened 6 years ago

sudo-give-me-coffee commented 6 years ago

I do not know if this is the best place for this, but you could add support for local repositories. It would be something like "source" section:

...

ingredients:
  dist: xxxx
  sources:
    - deb ... (main repo)
  local-repository:
    - /path/to/local/repo
    - /path/to/local/file.deb

...

reason: i don't know if is a bug but apt-get don't recognize previous local repositories at this time i use:

ingredients:
  dist: xxxxx
  sources:
    - deb ...
  script:
    - cp "/path/to/local/repo/*" .
    - cp "/path/to/local/file.deb" .

I think that this will help to build AppImages from DEB files way much more easy, fast and intuitive for developers

I love appimages ❤

Thanks for attention, and excuse me for errors, i don't speak english very well

probonopd commented 6 years ago

Hello @sudo-give-me-coffee and welcome to AppImage!

I think that this will help to build AppImages from DEB files way much more easy, fast and intuitive for developers

Well, for developers we actually recommend not to use deb files, but to make AppImages directly as part of the build process. https://github.com/probonopd/linuxdeployqt makes this easy.

May I ask which application(s) you are interested in making AppImages of?

sudo-give-me-coffee commented 6 years ago

@probonopd The problem with linuxdeployqt is that my ide (Lazarus) does not support it, (and that still uses GTK could not use it, I think), but i'm not sure

All the applications I use are already available in the application, I know of some applications that are not available and used on a large scale, I'm started make recipes from these:

When I finish my projects, I will make it available only under the appimages

Thanks for attention :)

probonopd commented 6 years ago

Hi @sudo-give-me-coffee, what do you mean with

The problem with linuxdeployqt is that my ide (Lazarus) does not support it

Why do you think your IDE needs to "support" it?

You can run linuxdeployqt from the command line, your IDE has nothing to do with it. Any IDE can be used.

probonopd commented 6 years ago

I'm started make recipes from these

Please ask the upstream application authors to provide official AppImages. Thanks!

probonopd commented 4 years ago

Hi @sudo-give-me-coffee did you ever attempt to turn Lazarus (or an app built with it) into an AppImage?

Someone over at https://discourse.appimage.org/t/is-it-possible-with-s-deploy-to-include-libraries-loaded-at-runtime/1779/5 was asking for it.

sudo-give-me-coffee commented 4 years ago

Lazarus itself is impossible (at least version 1.0.8), it compiles every time a component is installed, and depends on writable installation directory, May be with a wrapper, like you did with libhookexecve

probonopd commented 4 years ago

HI @sudo-give-me-coffee how does Lazarus work then when installed by the distribution in /usr? Just like an AppImage, that location is not writable to the user.

sudo-give-me-coffee commented 4 years ago

About the case of runtime loaded libs, you will need to run the binary with ltrace, this will output all loaded binaries, and will will be able to bundle it

sudo-give-me-coffee commented 4 years ago

how does Lazarus work then when installed by the distribution in /usr? Just like an AppImage, that location is not writable to the user.

Is needed to run with sudo, if install a component

sudo-give-me-coffee commented 4 years ago

Maybe using proot and unionfs-fuse you will be able to make a portable lazarus ide