FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) build.sh creates the Info.plist (XML)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
build.sh creates the Info.plist (XML)
Posted: Mon Jul 05, 2010 06:22 PM
See how easily FiveMac build.sh creates the Info.plist file (XML) required by Apple :-)
Code (fw): Select all Collapse
if [ ! -d $1.app ]; then
   mkdir $1.app
fi   
if [ ! -d $1.app/Contents ]; then
   mkdir $1.app/Contents
   echo '<?xml version="1.0" encoding="UTF-8"?>' > $1.app/Contents/Info.plist
   echo '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">' >> $1.app/Contents/Info.plist
   echo '<plist version="1.0">' >> $1.app/Contents/Info.plist
   echo '<dict>' >> $1.app/Contents/Info.plist
   echo '   <key>CFBundleIconFile</key>' >> $1.app/Contents/Info.plist
   echo '   <string>fivetech.icns</string>' >> $1.app/Contents/Info.plist
   echo '</dict>' >> $1.app/Contents/Info.plist
   echo '</plist>' >> $1.app/Contents/Info.plist
fi   
if [ ! -d $1.app/Contents/MacOS ]; then
   mkdir $1.app/Contents/MacOS
fi  
if [ ! -d $1.app/Contents/Resources ]; then
   mkdir $1.app/Contents/Resources
   cp ./../icons/fivetech.icns $1.app/Contents/Resources/
fi

Now when the Harbour and FiveMac app runs, the default icon is automatically selected:


Get your free FiveMac for Harbour today :-)
viewtopic.php?f=5&t=19169
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion