Skip to content

Commit

Permalink
Revise build-mac-app script to use assets
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiARIA committed Oct 25, 2015
1 parent da2be0a commit 3642932
Showing 1 changed file with 2 additions and 42 deletions.
44 changes: 2 additions & 42 deletions Lambda/build-mac-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,8 @@ ant jar

mkdir -p ${CONTENTS}/MacOS ${CONTENTS}/Resources

cat <<'EOF' > ${EXECUTABLE}
#!/bin/sh
CD=$(cd `dirname $0`; pwd)
APP_ROOT=$(cd ${CD}/../../..; pwd)
java \
-Xdock:name="LambdaMagica" \
-Dapple.laf.useScreenMenuBar=true \
-Duser.dir="${APP_ROOT}" \
-jar ${CD}/lm.jar &
EOF

cp assets/osx/run.sh ${EXECUTABLE}
chmod +x ${EXECUTABLE}

cp lambda-magica/lm.jar ${CONTENTS}/MacOS

cat <<EOF > ${CONTENTS}/Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>run.sh</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string></string>
<key>CFBundleDisplayName</key>
<string>LambdaMagica</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>LambdaMagica</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string></string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (C) YuukiARIA</string>
</dict>
</plist>
EOF
cp assets/osx/Info.plist ${CONTENTS}

0 comments on commit 3642932

Please sign in to comment.