CEF4Delphi/demos/Lazarus_Mac/ExternalPumpBrowser/create_mac_helper.sh

14 lines
425 B
Bash
Raw Normal View History

2021-02-18 23:55:24 +01:00
#!/bin/sh
CDIR=$(pwd)
cd "$(dirname "$0")"
../../Lazarus_any_OS/AppHelper/create_mac_helper_apps.sh ../../../bin/ExternalPumpBrowser.app
if [ "$(grep -i TCrCocoaApplication ../../../bin/ExternalPumpBrowser.app/Contents/Info.plist)" = "" ];
then
sed -i '' "1,4s/<dict>/<dict>\n <key>NSPrincipalClass<\/key>\n <string>TCrCocoaApplication<\/string>/" ../../../bin/ExternalPumpBrowser.app/Contents/Info.plist
fi
2021-02-18 23:55:24 +01:00
cd "$CDIR"