Re: [hatari-devel] hatari.app from cirrus-ci (was: Re: One scanline short in ST fullscreen)

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Sun, 17 Dec 2023 01:23:45 +0100
schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:

> Great! This is normal behaviour for applications signed by non-paying developers. Problem solved!
> 
> The quarantine problem was caused by signing failing silently. Hatari was not signed at all. The signing failed because of the big hatari-Hatari-mess in the CMakeLists. The appended patch2 fixes the issue. I also appended patch1 again to make sure patches are applied in the correct order.

So the problem is simply about a "hatari.app" vs. "Hatari.app" naming issue?
Ouch!
Ok, thanks a lot for your investigation, Andreas! But I think your second
patch is not the right way for Hatari, since this also renames the binary
on Linux and other OSes which is not what we want (at least it's not what
I want).

So I think for Hatari we should go the other way round and find the right
spots where we have to rename "Hatari" to "hatari" in the macOS parts of
the code.

Could you please check whether this fixes the issue, too:

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 30630b69..ba26b693 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -98,9 +98,9 @@ if(ENABLE_OSX_BUNDLE)
 	set(MACOSX_BUNDLE_ICON_FILE Hatari.icns)
 	set(MACOSX_BUNDLE_GUI_IDENTIFIER org.tuxfamily.Hatari)
 	if(CMAKE_GENERATOR MATCHES "Xcode")
-		set(BUNDLE_CONTENTS ${CMAKE_CURRENT_BINARY_DIR}/\${CONFIGURATION}/Hatari..app/Contents)
+		set(BUNDLE_CONTENTS ${CMAKE_CURRENT_BINARY_DIR}/\${CONFIGURATION}/hatari..app/Contents)
 	else()
-		set(BUNDLE_CONTENTS ${CMAKE_CURRENT_BINARY_DIR}/Hatari.app/Contents)
+		set(BUNDLE_CONTENTS ${CMAKE_CURRENT_BINARY_DIR}/hatari.app/Contents)
 	endif()
 	if(PNG_FOUND)
 		set(COPY_PNG cp -R ${PNG_LIBRARY} ${BUNDLE_CONTENTS}/Frameworks/)
diff --git a/src/gui-osx/Info-Hatari.plist b/src/gui-osx/Info-Hatari.plist
index eea99de6..b6d87bc2 100644
--- a/src/gui-osx/Info-Hatari.plist
+++ b/src/gui-osx/Info-Hatari.plist
@@ -54,7 +54,7 @@
 		</dict>
 	</array>
 	<key>CFBundleExecutable</key>
-	<string>Hatari</string>
+	<string>hatari</string>
 	<key>CFBundleIconFile</key>
 	<string>Hatari.icns</string>
 	<key>CFBundleIdentifier</key>
@@ -62,7 +62,7 @@
 	<key>CFBundleInfoDictionaryVersion</key>
 	<string>6.0</string>
 	<key>CFBundleName</key>
-	<string>Hatari</string>
+	<string>hatari</string>
 	<key>CFBundlePackageType</key>
 	<string>APPL</string>
 	<key>CFBundleShortVersionString</key>
@@ -71,7 +71,7 @@
 	<string>HATA</string>
 	<key>CFBundleVersion</key>
 	<string>2.4.1</string>
-	<key>Hatari</key>
+	<key>hatari</key>
 	<string>SDL Cocoa App</string>
 	<key>LSMinimumSystemVersion</key>
 	<string>10.9.0</string>
diff --git a/src/gui-osx/en.lproj/InfoPlist.strings b/src/gui-osx/en.lproj/InfoPlist.strings
index 8e9661ea..6e36b535 100644
--- a/src/gui-osx/en.lproj/InfoPlist.strings
+++ b/src/gui-osx/en.lproj/InfoPlist.strings
@@ -1,6 +1,6 @@
 /* Localized versions of Info.plist keys */
 
-CFBundleName = "Hatari";
+CFBundleName = "hatari";
 CFBundleShortVersionString = "Hatari version 2.4.1";
 CFBundleGetInfoString = "Hatari version 2.4.1 , Copyright 2022, T. Huth.";
 NSHumanReadableCopyright = "Copyright 2022, T. Huth.";
diff --git a/src/gui-osx/fr.lproj/InfoPlist.strings b/src/gui-osx/fr.lproj/InfoPlist.strings
index 0c25a2dd..06c3e018 100644
--- a/src/gui-osx/fr.lproj/InfoPlist.strings
+++ b/src/gui-osx/fr.lproj/InfoPlist.strings
@@ -1,6 +1,6 @@
 /* Localized versions of Info.plist keys */
 
-CFBundleName = "Hatari";
+CFBundleName = "hatari";
 CFBundleShortVersionString = "Hatari(fr) version F 2.4.1 ";
 CFBundleGetInfoString = "Hatari version 2.4.1 , Copyright 2022, T. Huth.";
 NSHumanReadableCopyright = "Copyright 2022, T. Huth.";

?

 Thanks,
  Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/