Recover directory where apk was created by Gulp with Cordova-lib plugin

Asked

Viewed 25 times

1

Good night,

I’m having a problem to recover the directory where the apk file was generated. I use the Cordova-lib plugin in Gulp to build an Ionic application.

The "real" problem is that I can’t recover the default location, nor even inform a location to generate that apk. If the path was fixed, I could move the file to a desired location, but I did the test on several computers and the generation directory differs between them.

An example of the gulpfile:

var gulp    = require("gulp"),
    cordova = require("cordova-lib").cordova;

gulp.task("build", function (callback) {
    cordova.build({
        "platforms": ["android"],
        "options": {
            argv: []
        }
    }, callback);
});

Thank you if someone knows a way to recover/set this output directory or even know some other plugin to build an Ionic application.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.