Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[osx] - adapt osx packaging - make it similar to what we do on ios an…
…d atv2 for consistency reasons
- Loading branch information
Showing
4 changed files
with
53 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/sh | ||
|
||
# usage: ./mkdmg-xbmc-osx.sh release/debug (case insensitive) | ||
# Allows us to run mkdmg-xbmc-osx.sh from anywhere in the three, rather than the tools/darwin/packaging/xbmc-osx folder only | ||
SWITCH=`echo $1 | tr [A-Z] [a-z]` | ||
DIRNAME=`dirname $0` | ||
|
||
if [ ${SWITCH:-""} = "debug" ]; then | ||
echo "Packaging Debug target for OSX" | ||
XBMC="$DIRNAME/../../../../build/Debug/XBMC.app" | ||
elif [ ${SWITCH:-""} = "release" ]; then | ||
echo "Packaging Release target for OSX" | ||
XBMC="$DIRNAME/../../../../build/Release/XBMC.app" | ||
else | ||
echo "You need to specify the build target" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d $XBMC ]; then | ||
echo "XBMC.app not found! are you sure you built $1 target?" | ||
exit 1 | ||
fi | ||
ARCHITECTURE=`file $XBMC/Contents/MacOS/XBMC | awk '{print $NF}'` | ||
|
||
PACKAGE=org.xbmc.xbmc-osx | ||
|
||
VERSION=13.0 | ||
REVISION=0~alpha2 | ||
ARCHIVE=${PACKAGE}_${VERSION}-${REVISION}_macosx-intel-${ARCHITECTURE} | ||
|
||
echo Creating $PACKAGE package version $VERSION revision $REVISION | ||
${SUDO} rm -rf $DIRNAME/$ARCHIVE | ||
|
||
if [ -e "/Volumes/XBMC" ] | ||
then | ||
umount /Volumes/XBMC | ||
fi | ||
|
||
$DIRNAME/dmgmaker.pl $XBMC $ARCHIVE | ||
|
||
echo "done" |