[atv2/ios5.1] - create the appliances dir if needed - its not there after jb
authorMemphiz <memphis@machzwo.de>
Sat, 31 Mar 2012 18:49:43 +0000 (20:49 +0200)
committerMemphiz <memphis@machzwo.de>
Sat, 31 Mar 2012 18:53:21 +0000 (20:53 +0200)
tools/darwin/packaging/xbmc-atv2/mkdeb-xbmc-atv2.sh

index 45d2a2f..61f00a4 100755 (executable)
@@ -83,6 +83,7 @@ echo "if [ \"\`uname -r\`\" = \"10.3.1\" ]; then" >> $DIRNAME/$PACKAGE/DEBIAN/po
 echo "  ln -sf /Applications/XBMC.frappliance /Applications/Lowtide.app/Appliances/XBMC.frappliance" >> $DIRNAME/$PACKAGE/DEBIAN/postinst
 echo "  killall Lowtide"                          >> $DIRNAME/$PACKAGE/DEBIAN/postinst
 echo "else"                                       >> $DIRNAME/$PACKAGE/DEBIAN/postinst
+echo "  mkdir -p /Applications/AppleTV.app/Appliances"                                               >> $DIRNAME/$PACKAGE/DEBIAN/postinst
 echo "  ln -sf /Applications/XBMC.frappliance /Applications/AppleTV.app/Appliances/XBMC.frappliance" >> $DIRNAME/$PACKAGE/DEBIAN/postinst
 echo "  killall AppleTV"                          >> $DIRNAME/$PACKAGE/DEBIAN/postinst
 echo "fi"                                         >> $DIRNAME/$PACKAGE/DEBIAN/postinst