changeset 2944:3dde7456c9f6

Mac: Create a Info.plist template to be used by the finishup script. The Info.plist was being used unmodified by Xcode and was unable to find the binary due to the variable replacement not being run on it.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 02 Jan 2023 01:36:06 +0000
parents fbf43ea71c8e
children 7e7b38472c3d
files mac/Info.plist mac/Info.template mac/finishup.sh
diffstat 3 files changed, 42 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mac/Info.plist	Mon Jan 02 01:32:18 2023 +0000
+++ b/mac/Info.plist	Mon Jan 02 01:36:06 2023 +0000
@@ -5,11 +5,11 @@
 	<key>CFBundleDevelopmentRegion</key>
 	<string>en</string>
 	<key>CFBundleExecutable</key>
-	<string>APPNAME</string>
+	<string>dwtest</string>
 	<key>CFBundleIconFile</key>
 	<string></string>
 	<key>CFBundleIdentifier</key>
-	<string>org.dbsoft.APPNAME</string>
+	<string>org.dbsoft.dwtest</string>
 	<key>CFBundleInfoDictionaryVersion</key>
 	<string>6.0</string>
 	<key>CFBundleName</key>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mac/Info.template	Mon Jan 02 01:36:06 2023 +0000
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>en</string>
+	<key>CFBundleExecutable</key>
+	<string>APPNAME</string>
+	<key>CFBundleIconFile</key>
+	<string></string>
+	<key>CFBundleIdentifier</key>
+	<string>org.dbsoft.APPNAME</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleName</key>
+	<string>dwtest</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>1.1</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleVersion</key>
+	<string>1</string>
+	<key>LSApplicationCategoryType</key>
+	<string>public.app-category.developer-tools</string>
+	<key>LSMinimumSystemVersion</key>
+	<string>${MACOSX_DEPLOYMENT_TARGET}</string>
+	<key>NSPrincipalClass</key>
+	<string>NSApplication</string>
+	<key>NSAppTransportSecurity</key>
+	<dict>
+		<key>NSAllowsArbitraryLoadsInWebContent</key>
+		<true/>
+		<key>NSAllowsArbitraryLoads</key>
+		<true/>
+	</dict>
+</dict>
+</plist>
--- a/mac/finishup.sh	Mon Jan 02 01:32:18 2023 +0000
+++ b/mac/finishup.sh	Mon Jan 02 01:36:06 2023 +0000
@@ -6,7 +6,7 @@
     mkdir -p $2.app/Contents/MacOS
     mkdir -p $2.app/Contents/Resources
 
-    cat $1/mac/Info.plist | sed s/APPNAME/$2/ >  $2.app/Contents/Info.plist
+    cat $1/mac/Info.template | sed s/APPNAME/$2/ >  $2.app/Contents/Info.plist
     cp -f $1/mac/PkgInfo $2.app/Contents 
     cp -f $1/mac/file.png $2.app/Contents/Resources
     cp -f $1/mac/folder.png $2.app/Contents/Resources