Include icon in app.
authorChris Hanson <org/chris-hanson/cph>
Sun, 13 Dec 2009 06:07:34 +0000 (22:07 -0800)
committerChris Hanson <org/chris-hanson/cph>
Sun, 13 Dec 2009 06:07:34 +0000 (22:07 -0800)
src/etc/make-macosx-app.sh

index a83c4f13cf5e641a63c16ee31738523f5e91db99..e688f6536b6e7e441460e1ec4b34a8be013b75d0 100755 (executable)
@@ -36,11 +36,16 @@ mkdir mit-scheme.app/Contents/Resources
 
 # Install into temporary directory, then move contents into bundle.
 make install DESTDIR=$(pwd)/tmp
-mv tmp/usr/local/bin/mit-scheme-native \
-    mit-scheme.app/Contents/Resources/mit-scheme
-mv tmp/usr/local/lib/mit-scheme/macosx-starter mit-scheme.app/Contents/MacOS/.
-rm -f tmp/usr/local/lib/mit-scheme/runtime.com
-mv tmp/usr/local/lib/mit-scheme/* mit-scheme.app/Contents/Resources/.
+if [[ -f tmp/usr/local/bin/mit-scheme-x86-64 ]]; then
+    EXE=tmp/usr/local/bin/mit-scheme-x86-64
+else 
+    EXE=tmp/usr/local/bin/mit-scheme-i386
+fi
+mv "${EXE}" mit-scheme.app/Contents/Resources/mit-scheme
+cp etc/edwin.icns mit-scheme.app/Contents/Resources/appIcon.icns
+mv tmp/usr/local/lib/mit-scheme*/macosx-starter mit-scheme.app/Contents/MacOS/.
+rm -f tmp/usr/local/lib/mit-scheme*/runtime.com
+mv tmp/usr/local/lib/mit-scheme*/* mit-scheme.app/Contents/Resources/.
 rm -rf tmp
 
 # Generate an appropriate Info.plist file.
@@ -84,10 +89,8 @@ cat > mit-scheme.app/Contents/Info.plist <<EOF
     <string>English</string>
     <key>LSHasLocalizedDisplayName</key>
     <false/>
-    <!--
     <key>CFBundleIconFile</key>
     <string>appIcon.icns</string>
-    -->
   </dict>
 </plist>
 EOF