# HG changeset patch
# User bsmith@81767d24-ef19-dc11-ae90-00e081727c95
# Date 1672623366 0
# Node ID 3dde7456c9f646eae42477d895f4b95570924d0e
# Parent fbf43ea71c8eee369cd2eef9a06aa0ba2d55ccb2
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.
diff -r fbf43ea71c8e -r 3dde7456c9f6 mac/Info.plist
--- 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 @@
CFBundleDevelopmentRegion
en
CFBundleExecutable
- APPNAME
+ dwtest
CFBundleIconFile
CFBundleIdentifier
- org.dbsoft.APPNAME
+ org.dbsoft.dwtest
CFBundleInfoDictionaryVersion
6.0
CFBundleName
diff -r fbf43ea71c8e -r 3dde7456c9f6 mac/Info.template
--- /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 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ APPNAME
+ CFBundleIconFile
+
+ CFBundleIdentifier
+ org.dbsoft.APPNAME
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ dwtest
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 1.1
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1
+ LSApplicationCategoryType
+ public.app-category.developer-tools
+ LSMinimumSystemVersion
+ ${MACOSX_DEPLOYMENT_TARGET}
+ NSPrincipalClass
+ NSApplication
+ NSAppTransportSecurity
+
+ NSAllowsArbitraryLoadsInWebContent
+
+ NSAllowsArbitraryLoads
+
+
+
+
diff -r fbf43ea71c8e -r 3dde7456c9f6 mac/finishup.sh
--- 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