Creating separate debug package
Alec Leamas
leamas.alec at gmail.com
Wed Oct 2 11:08:10 UTC 2019
Hej Alexander,
On 01/10/2019 09:15, Alexander Larsson wrote:
> On Wed, Sep 25, 2019 at 7:39 AM Alec Leamas <leamas.alec at gmail.com> wrote:
>> Hi Ryan,
>>
>> Thanks for taking time to reply!
>>
>>> On Tue, Sep 24, 2019, 3:36 PM Alec Leamas <leamas.alec at gmail.com
>>> <mailto:leamas.alec at gmail.com>> wrote:
>>>
>>> Dear list,
>>>
>>> So, I have a package which is just too big, and the reason is basically
>>> the contents of /app/lib/debug. I suppose the problem to split my
>>> package into a base package + a debug (extension?) is solved since long,
>>> but I'm too dumb to find the solution.
>>>
>>> Any wisdom in this list?
>>> On 25/09/2019 05:52, Ryan Gonzalez wrote:
>>>> This should happen automatically...
>> Perhaps.. But I just don't get it. My workflow is basically
>>
>> flatpak-builder --force-clean app org.opencpn.OpenCPN.yaml
> This will create the directory app/ with the combined data for the app
> and all the extension, and several manifest files, one for the app and
> one for each extension.
>
>> flatpak build-export repo/repo app stable
> This will export all the data as one huge app, rather than the
> different parts that flatpak-builder created.
>
> Basically, you're mixing two levels of tools here. The high-level
> flatpak-builder and the low-level "flatpak build-export". The proper
> way to do this
> is to do it all in one commands:
>
> flatpak-builder --repo=repo/repo --force-clean app org.opencpn.OpenCPN.yaml
>
> Under the covers this will call "flatpak build-export" multiple times,
> one for each extension, with the right manifest, and with the right
> argument to include the right parts. For example, when exporting the
> app it will pass --exclude=/lib/debug and when exporting the debug
> info it will pass --files=files/lib/debug.
>
Thanks!
As I suspected I had got it all wrong. Needless to say, your proposal
just works.
Forwarding to list in case anyone else out there runs into similar
troubles. Or just needs your really good explanations.
Cheers!
--alec
More information about the Flatpak
mailing list