Hello Chris,
I didn’t build Hatari. I am working on Previous, which shares some code with Hatari and WinUAE. Adding libpng might work similarly, but I am not sure.
I think one would need to upload the pre-built png.framework somewhere and add something like this to that script:
under populate_script: - if [ ! -f dl_cache/png.framework.zip ]; then wget -O dl_cache/png.framework.zip https://some.url.com/png.framework.zip ;
under script: - unzip .../dl_cache/png.framework.zip src/hatari.app/Contents/Frameworks/
You will also need to change deployment target to 10.13 if you want to use my binary. Else you might need to build libpng with a different deployment target.
I hope that works. It is untested.
Best wishes, Andreas
Am 28.10.2023 um 16:41 schrieb Chris Jenkins <cdpjenkins@xxxxxxxxx>:
Hi Andreas,
Are you able to describe what you did to append a pre-built framework version of the latest libpng? I don't use Hatari often (and haven't built it for a while) but I do have a Mac and maybe I can repeat what you did and thenfigure out what needs to be done in order to script it in Cirrus CI.
Cheers, Chris
> Am 28.10.2023 um 08:05 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
>
> Am Thu, 26 Oct 2023 22:15:11 +0200
> schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
>
>>>> Am 26.10.2023 um 20:36 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
>>>
>>> Am Tue, 24 Oct 2023 19:53:43 +0000
>>> schrieb Anders Eriksson <evldhs@xxxxxxxxxxxxxx>:
>>> ...
>>>> Hello again Thomas,
>>>>
>>>> I noticed today that the builds from cirrus-ci are missing libpng so compressed videos/screenshots are not possible.
>>>> Not a big deal for screenshots but videos gets very very large.
>>>>
>>>> Is it possible to add libpng to these Hatari builds?
>>>
>>> Hi,
>>>
>>> main problem is that there does not seem to be a proper pre-built libpng
>>> available for macOS. It's likely possible to compile that in the cirrus-CI,
>>> too ... but for me that's very cumbersome to come up with the right
>>> commands since I don't have a macOS machine for testing, i.e. I have to
>>> update the cirrus-ci.yml file by guessing, then submit a built, then wait
>>> for the job to get scheduled, then finally find out that I had a typo
>>> somewhere, then start again from the beginning ... It would really be
>>> better if one of the macOS users could come up with a proper patch for the
>>> .cirrus-ci.yml file instead.
>>>
>>> Thomas
>>>
>>>
>>
>> I appended a pre-built framework version of the latest libpng (1.6.40). It works with macOS 10.13 and later. I have built it with these steps:
>
> Thanks a lot! ... could you maybe also come up with the right commands
> for the .cirrus-ci.yml file?
>
> Thomas
>
>
I have never used such scripts. I am afraid someone else has to take a look at that.
|