#!/bin/sh
realApp="%APPLICATION"
destfolder="%DESTINATION"

STREAMERPATH="$destfolder/$realApp.app"
FALLBACK_APP="$destfolder/${realApp} 360.app"

if [ -e "$STREAMERPATH" ]; then
  open "$STREAMERPATH" --args "$@"
else
  open "$FALLBACK_APP" --args "$@"
fi
