banshee r4713 - in trunk/banshee/build/osx: . app-bundle-data app-bundle-data/Contents app-bundle-data/Contents/MacOS app-bundle-data/Contents/Resources glib-sharp-workaround
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4713 - in trunk/banshee/build/osx: . app-bundle-data app-bundle-data/Contents app-bundle-data/Contents/MacOS app-bundle-data/Contents/Resources glib-sharp-workaround
- Date: Wed, 22 Oct 2008 00:29:49 +0000 (UTC)
Author: abock
Date: Wed Oct 22 00:29:48 2008
New Revision: 4713
URL: http://svn.gnome.org/viewvc/banshee?rev=4713&view=rev
Log:
Unfortunate workaround for a broken glib-sharp in Mono 2.0, and a script to create an application bundle
Added:
trunk/banshee/build/osx/app-bundle-data/
trunk/banshee/build/osx/app-bundle-data/Contents/
trunk/banshee/build/osx/app-bundle-data/Contents/Info.plist
trunk/banshee/build/osx/app-bundle-data/Contents/MacOS/
trunk/banshee/build/osx/app-bundle-data/Contents/MacOS/banshee (contents, props changed)
trunk/banshee/build/osx/app-bundle-data/Contents/Resources/
trunk/banshee/build/osx/app-bundle-data/Contents/Resources/banshee.icns (contents, props changed)
trunk/banshee/build/osx/glib-sharp-workaround/
trunk/banshee/build/osx/glib-sharp-workaround/glib-sharp.dll (contents, props changed)
trunk/banshee/build/osx/glib-sharp-workaround/glib-sharp.dll.config
trunk/banshee/build/osx/make-app-bundle.sh (contents, props changed)
Added: trunk/banshee/build/osx/app-bundle-data/Contents/Info.plist
==============================================================================
--- (empty file)
+++ trunk/banshee/build/osx/app-bundle-data/Contents/Info.plist Wed Oct 22 00:29:48 2008
@@ -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>Banshee</string>
+ <key>CFBundleExecutable</key>
+ <string>banshee</string>
+ <key>CFBundleIconFile</key>
+ <string>banshee.icns</string>
+</dict>
+</plist>
Added: trunk/banshee/build/osx/app-bundle-data/Contents/MacOS/banshee
==============================================================================
--- (empty file)
+++ trunk/banshee/build/osx/app-bundle-data/Contents/MacOS/banshee Wed Oct 22 00:29:48 2008
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+MONO_EXE=Nereid.exe
+MONO_FRAMEWORK_PATH=/Library/Frameworks/Mono.framework/Versions/Current
+MONO=$MONO_FRAMEWORK_PATH/bin/mono
+
+SELF_PATH=$(dirname $0)
+[[ ${SELF_PATH:0:1} = / ]] && BIN_PATH=$SELF_PATH || BIN_PATH="$(pwd)/$SELF_PATH"
+
+OSX_VERSION=$(uname -r | cut -f1 -d.)
+
+export GST_REGISTRY_FORK=no
+export DYLD_FALLBACK_LIBRARY_PATH=$BIN_PATH:$MONO_FRAMEWORK_PATH/lib:/usr/lib:/lib${DYLD_FALLBACK_LIBRARY_PATH+:$DYLD_FALLBACK_LIBRARY_PATH}
+export MONO_PATH=$BIN_PATH/glib-sharp-workaround
+
+[ -n "$BANSHEE_DEBUG" ] && BANSHEE_DEBUG="--debug"
+[ -n "$BANSHEE_TRACE" ] && BANSHEE_TRACE="--trace=$BANSHEE_TRACE"
+[ -n "$BANSHEE_PROFILE" ] && BANSHEE_PROFILE="--profile=$BANSHEE_PROFILE"
+
+for arg in $*; do
+ case "x--debug" in ("x$arg")
+ BANSHEE_DEBUG=$arg
+ esac
+
+ case "x--trace=" in ("x${arg:0:8}")
+ BANSHEE_TRACE=$arg
+ esac
+
+ case "x--profile=" in ("x${arg:0:10}")
+ BANSHEE_PROFILE=$arg
+ esac
+
+ case "x--redirect-log" in ("x$arg")
+ BANSHEE_REDIRECT_LOG="$HOME/.config/banshee-1/log"
+ esac
+done
+
+if [ -n "$BANSHEE_DEBUG" -o -n "$BANSHEE_TRACE" -o -n "$BANSHEE_PROFILE" ]; then
+ MONO_OPTIONS="$BANSHEE_DEBUG $BANSHEE_TRACE $BANSHEE_PROFILE"
+ echo "** Running Mono with $MONO_OPTIONS **"
+fi
+
+EXEC_COMMAND="$MONO $MONO_OPTIONS $BIN_PATH/$MONO_EXE $@"
+
+if [ $OSX_VERSION -lt 9 ]; then
+ $EXEC_COMMAND
+else
+ exec -a Banshee $EXEC_COMMAND
+fi
+
Added: trunk/banshee/build/osx/app-bundle-data/Contents/Resources/banshee.icns
==============================================================================
Binary file. No diff available.
Added: trunk/banshee/build/osx/glib-sharp-workaround/glib-sharp.dll
==============================================================================
Binary file. No diff available.
Added: trunk/banshee/build/osx/glib-sharp-workaround/glib-sharp.dll.config
==============================================================================
--- (empty file)
+++ trunk/banshee/build/osx/glib-sharp-workaround/glib-sharp.dll.config Wed Oct 22 00:29:48 2008
@@ -0,0 +1,6 @@
+<configuration>
+ <dllmap dll="libglib-2.0-0.dll" target="/Library/Frameworks/Mono.framework/Versions/2.0/lib/libglib-2.0.0.dylib"/>
+ <dllmap dll="libgobject-2.0-0.dll" target="/Library/Frameworks/Mono.framework/Versions/2.0/lib/libgobject-2.0.0.dylib"/>
+ <dllmap dll="libgthread-2.0-0.dll" target="/Library/Frameworks/Mono.framework/Versions/2.0/lib/libgthread-2.0.0.dylib"/>
+ <dllmap dll="glibsharpglue-2" target="/Library/Frameworks/Mono.framework/Versions/2.0/lib/libglibsharpglue-2.so"/>
+</configuration>
Added: trunk/banshee/build/osx/make-app-bundle.sh
==============================================================================
--- (empty file)
+++ trunk/banshee/build/osx/make-app-bundle.sh Wed Oct 22 00:29:48 2008
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+pushd $(dirname $0) &>/dev/null
+
+rm -rf Banshee.app
+cp -rf app-bundle-data Banshee.app
+
+DEST=Banshee.app/Contents/MacOS
+
+cp -rf bundle-deps/* $DEST
+cp -rf ../../bin/* $DEST
+cp -rf glib-sharp-workaround $DEST
+
+zip -r Banshee.zip Banshee.app
+
+rm -rf Banshee.app
+
+popd &>/dev/null
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]