Minimize binary size and external dependencies in OS X LaunchSLClient.app creation script.

This commit is contained in:
Jeff Ames
2008-05-02 03:30:44 +00:00
parent 412ca26565
commit f94099b485
3 changed files with 46 additions and 19 deletions

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>LaunchSLClient</string>
<key>CFBundleExecutable</key>
<string>LaunchSLClient</string>
<key>CFBundleIconFile</key>
<string></string>
</dict>
</plist>

View File

@@ -0,0 +1,13 @@
#!/bin/sh
PWD=`pwd`
# Fetch the path relative to the launch point where this shell script exists.
APP_PATH=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+3] != "") { if (patharr[idx] != "/") {printf("%s/", patharr[idx]); idx++ }} }'`
# Fetch the app name (its our own name)
APP_NAME=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+1] != "") {idx++} printf("%s", patharr[idx]); }'`
cd "$APP_PATH/Contents/Resources"
./$APP_NAME