CEF4Delphi/demos/Lazarus_any_OS/BrowserWindowOsrDom/create_mac_helper.sh

14 lines
406 B
Bash
Executable File

#!/bin/sh
CDIR=$(pwd)
cd "$(dirname "$0")"
./AppHelper/create_mac_helper_apps.sh ../../../bin/BrowserWindowOsrDom.app
if [ "$(grep -i TCrCocoaApplication ../../../bin/BrowserWindowOsrDom.app/Contents/Info.plist)" = "" ];
then
sed -i '' "1,4s/<dict>/<dict>\n <key>NSPrincipalClass<\/key>\n <string>TCrCocoaApplication<\/string>/" ../../../bin/BrowserWindowOsrDom.app/Contents/Info.plist
fi
cd "$CDIR"