From: Alexis Laferrière Date: Fri, 7 Mar 2014 22:16:37 +0000 (-0500) Subject: nitg/android: move generate apk file (with -o or locally) X-Git-Tag: v0.6.5~42^2~2 X-Git-Url: http://nitlanguage.org nitg/android: move generate apk file (with -o or locally) Signed-off-by: Alexis Laferrière --- diff --git a/src/android_platform.nit b/src/android_platform.nit index aace0c0..d888a32 100644 --- a/src/android_platform.nit +++ b/src/android_platform.nit @@ -219,5 +219,10 @@ $(call import-module,android/native_app_glue) # Generate the apk toolcontext.exec_and_check(["ant", "-q", "debug", "-f", android_project_root+"/build.xml"]) + + # Move the apk to the target + var outname = toolcontext.opt_output.value + if outname == null then outname = "{compiler.mainmodule.name}.apk" + toolcontext.exec_and_check(["mv", "{android_project_root}/bin/{compiler.mainmodule.name}-debug.apk", outname]) end end