Re: [hatari-devel] How to include EmuTOS in Hatari.app when building it yourself on macOS? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] How to include EmuTOS in Hatari.app when building it yourself on macOS?
- From: Frank Danapfel <frank.danapfel@xxxxxxxxxxxxxx>
- Date: Fri, 27 Jun 2025 20:08:32 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1751047724; x=1751652524; darn=lists.tuxfamily.org; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=f/u0G3B82UaX0vCo0jM83nAsLcUr9cm5xkNTexsBYPQ=; b=a4sDAuaCsKHtzwrzoLJirOaOG7QP1MECrBQ9sd4QxRJl2HMkBh8QFuQycTIZMPEb00 N5ULAtdPEaPXXORr1z0op0z8mD2O0D9nPyPqEGyN6DugR5ykss5b/NuYSnm8o0Uw3ibH y1EJ+1H1AHMvo9AtW8hGA74vSO+PYiQARufi9bwzXGbRfzs3yDlKkTq0FrSgczbsWcnA R4OKuhvb8BsMq1cBccjiE4fDoEqRz9nDDkvSJdEjTHVM2t6R5hj62hJgOLfTOWVS6b+8 +uc7OPzL3hL2y2Ra26eqSmCETNDU+rp9l/jedVcrv/29NBqTSbieEr4NPO8zbFwx6bSF ItKA==
Hi all,
I’ve now managed to figure this out myself.
All that is needed is one small change in the src/CMakeLists.txt file to include tos.img in the list of files that should be included in the app bundle:
--- CMakeLists.txt.orig 2025-06-27 19:52:06
+++ CMakeLists.txt 2025-06-27 19:52:26
@@ -25,7 +25,7 @@
gui-osx/CreateFloppyController.m gui-osx/SDLMain.m gui-osx/paths.m)
set_source_files_properties(${GUIOSX_SOURCES} PROPERTIES LANGUAGE C)
set(GUIOSX_RSRCS
- Hatari.icns gui-osx/stdisk.png gui-osx/en.lproj gui-osx/fr.lproj)
+ Hatari.icns tos.img gui-osx/stdisk.png gui-osx/en.lproj gui-osx/fr.lproj)
set(GUIOSX_DOCS
${CMAKE_SOURCE_DIR}/doc/manual.html ${CMAKE_SOURCE_DIR}/doc/images
${CMAKE_SOURCE_DIR}/doc/compatibility.html ${CMAKE_SOURCE_DIR}/doc/toc.js )
And the tos.img file has to be copied to the main src directory from which Hatari is built.
Maybe somebody can include this change in the official repo, so that others who want to built Hatari on macOS themselves can also get a version of the Hatari.app that inclused the tos.img.
Regards,
Frank
> On 26. Jun 2025, at 10:23, Frank Danapfel <frank.danapfel@xxxxxxxxxxxxxx> wrote:
>
> Hi Bob,
>
> thanks for the suggestions, but as mentioned in my initial post I’m already able to build Hatari.app without portmidi using cmake. And I don’t want a UNIX-style binary that I have to run from Terminal.
>
> All I need is some guidance on what I would have to change in the cmake configuration or elsewhere to get the tos.img included in the Hatari.app that is created when running „cmake —build ..“ in the same way this is done in the official Hatari builds.
>
> Regards,
> Frank
>
>
>> On 26. Jun 2025, at 04:41, Bob Carpenter <hatari@xxxxxxxxxx> wrote:
>>
>> Eero,
>>
>> On the Mac, the tos.img file must be included in the package if you compile it to use the Mac-specific interface.
>>
>> Frank,
>>
>> If you want a version with the macOS interface, but without portmidi, you’ll need to use Xcode to compile Hatari. I have the instructions, but they’re out of date for Apple’s current code-signing.
>>
>> If you want to compile a UNIX-style binary that you run from Terminal, there’s a Makefile flag to tell Hatari to not create a bundle. If you do that, then Eero’s suggestion will work for you.
>>
>> Bob C
>>
>> On Wed, Jun 25, 2025, at 2:03 PM, Eero Tamminen wrote:
>>> Hi,
>>>
>>> On 25.6.2025 12.28, Frank Danapfel wrote:
>>>> I’m building Hatari myself directly from the source repo because I need a version that does not include portmidi (in order to be able to test things like MidiMaze).
>>> ...
>>>> The built Hatari.app works, but there is always an error because the tos.img is missing in the app bundle. I tried to copy the tos.img into the app bundle myself, but then Hatari.app won't start anymore because of a wrong checksum or something.
>>>>
>>>> Since the officially available Hatari builds for macOS include EmuTos in the app bundle, can somebody provide the additional steps that are necessary to ensure that tos.img is added to Hatari.app during compilation?
>>>
>>> I have no idea how that works, but if this is just for yourself, and
>>> always on the same machine, what's wrong with just having / saving
>>> Hatari config file that points to correct TOS file?
>>>
>>>
>>> - Eero
>>>
>>>
>>>
>>>
>>
>