[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to embed command line tools in a Gambas app for AppImages ?


Am 06.07.24 um 15:30 schrieb Benoît Minisini:
Can you try make the AppImage with the latest commit? I added inned '/bin' and '/usr/bin' to the PATH inside 'appimage-builder' configuration file.

Tell me if now it can run a 'ffmpeg' (or any other command-line program) bundled with the AppImage.

If you want to do some tests by yourself, the appimage-builder configuration file template is located in the 'install/AppImageBuilder.yml' file of the IDE source code.
Here are my test results:

1.    Shell Command to use Resources embedded in the AppImage

First I verified that whether the updated master included the new entries in the yml recipe template ... they were there.

Then I tried to load my ffmpeg app by starting the IDE as source code of the up-to-date master. I got an error message "Unknown symbol 'Exist' in class 'Components'" - strange.

Then I used an installed up-to-date Master and generated an AppImage with ffmpeg as added dependency. This doubled the size of the AppImage from ~41MB to ~91MB. Then I started the AppImage in the console on a VM with the same operating system but where no ffmpeg was installed. The debug output in the console showed:

Recording process error: /bin/sh: 1: ffmpeg: not found

Since the same AppImage worked on the VM where ffmpeg was installed, it tells me that AppImage still uses the platform resources instead of its inner ones. By the way: The inclusion of this environmental parameter (if it works at all) should be optional and not mandatory.

2.    New HttpClient.SSL.CAInfo and HttpClient.SSL.CAPath

I played with is as follows:

    ...

    hClient = New HttpClient As "hClient"
    hClient.URL = "https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Gambas_3_logo.svg/480px-Gambas_3_logo.svg.png";
    hClient.Timeout = 60
    hClient.async = True
    Print "hClient.SSL.CAInfo: "; hClient.SSL.CAInfo
    Print "hClient.SSL.CAPath: "; hClient.SSL.CAPath
    hClient.SSL.CAPath = "/rubbish"
    hClient.Get()

    ....

The output of both properties were empty, setting CaPath to rubbish doesn't raise any error and the app continues to works well in the IDE and as executable. When I make an AppImage out of it I get the error message "[11] Unknown symbol 'CaInfo' in class 'Curl.SSL'. Am I on the wrong track?

Regards

Claus




Follow-Ups:
Re: How to embed command line tools in a Gambas app for AppImages ?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: How to embed command line tools in a Gambas app for AppImages ?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
Re: How to embed command line tools in a Gambas app for AppImages ?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: How to embed command line tools in a Gambas app for AppImages ?Claus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: How to embed command line tools in a Gambas app for AppImages ?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>