From: Chris Hanson Date: Sun, 13 Dec 2009 06:07:34 +0000 (-0800) Subject: Include icon in app. X-Git-Tag: 20100708-Gtk~211 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=978a6985b1d822811f0607f0cf67e31d2706b98c;p=mit-scheme.git Include icon in app. --- diff --git a/src/etc/make-macosx-app.sh b/src/etc/make-macosx-app.sh index a83c4f13c..e688f6536 100755 --- a/src/etc/make-macosx-app.sh +++ b/src/etc/make-macosx-app.sh @@ -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 <English LSHasLocalizedDisplayName - EOF