Retrieve directory where apk was created by gulp with the cordova-lib plugin

1

Good evening,

I'm having a problem retrieving 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 not recover the default location, or even tell a place to generate that apk. If the path were fixed, I would be able to move the file to a desired location, but I ran the test on multiple computers and the generation directory differs between them.

Here is an example of gulpfile:

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

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

Thank you in case anyone knows a way to recover / set this output directory or even know some other plugin to build an ionic application.

    
asked by anonymous 12.07.2018 / 02:25

0 answers