From 978a6985b1d822811f0607f0cf67e31d2706b98c Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 12 Dec 2009 22:07:34 -0800 Subject: [PATCH] Include icon in app. --- src/etc/make-macosx-app.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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 -- 2.25.1