Put a 732x412 image into res/drawable-xhdpi/ouya_icon.png
Now adjust the launcher image ``ouya_icon.png`` and build/run it
-with the Android Developer Tools Eclipse IDE.
+with the Android Developer Tools Eclipse IDE, or via command line::
+
+ $ ant release
The generated ``.apkg`` file will be located in the ``bin/`` folder.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
-<project name="game_sample" default="help">
+<project name="ouya-snes-FIXME_PACKAGE" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
set -e
#clean up from last run
-git checkout AndroidManifest.xml res/drawable-xhdpi/ouya_icon.png
-for i in `ls assets/game`; do
- rm assets/game/$i
-done
+git checkout AndroidManifest.xml build.xml res/drawable-xhdpi/ouya_icon.png
+
+[ -d assets/game ] && rm -r assets/game
[ -d bin ] && rm -r bin
[ -d gen ] && rm -r gen
[ -d src/romlauncher ] && rm -r src/romlauncher
./cleanup.sh
if [ $# -lt 3 ]; then
- echo "Usage: ./prepare-game.sh title java.package path-to-game.smc"
+ echo "Usage: ./prepare-game.sh title java.package path-to-game.smc [cover.png]"
exit
fi
echo "Game file: $filename"
#prepare manifest
+sed -i\
+ -e "s/FIXME_PACKAGE/$package/" \
+ build.xml
+
+#prepare build file
sed -i\
-e "s/FIXME_PACKAGE/$fullpackage/" \
-e "s/FIXME_TITLE/$title/" \
AndroidManifest.xml
#copy game
+mkdir -p assets/game
cp "$filepath" assets/game/
#prepare launcher
LaunchRomActivity.java.tpl\
> src/romlauncher/$package/LaunchRomActivity.java
+if [ $# -gt 3 ]; then
+ image=$4
+ cp "$image" res/drawable-xhdpi/ouya_icon.png
+ echo "Image copied"
+else
+ echo "Put a 732x412 image into res/drawable-xhdpi/ouya_icon.png"
+fi
+
echo "All prepared."
-echo "Put a 732x412 image into res/drawable-xhdpi/ouya_icon.png"