From e14492383d5b963c1e6619dd72ab7598d71d4b5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 7 Mar 2014 17:16:37 -0500 Subject: [PATCH] nitg/android: move generate apk file (with -o or locally) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/android_platform.nit | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 1.7.9.5