Closed Scriptonita closed 7 years ago
Already solved.
As happened to #63 phonegapBuild.on("login") never gets called.
If I change the extension apk to txt I can see that the content in files say that i need loggin.
This is the code that work for me:
phonegapbuild.login(datos, function(e, api) {
console.log("Estás logeado en Phonegap Build");
phonegapbuild.build(datos, function(e, data) {
if (e) {
console.error("Fallo al compilar:", e);
} else {
console.log("Se ha compilado con éxito!!");
let android = fs.createWriteStream(datos.title + ".apk");
api.get("/apps/XXXXXXX/android").pipe(android);
}
});
});
Hi!! I'm trying make a script to download the app after build succes.
The first url download a 4,4Kb file, the second 61bytes.
I have also tried with: https://www.npmjs.com/package/download https://www.npmjs.com/package/request-progress
But the same thing happens. If I go to the build.phonegap.com and click on the Apps link, I download a file aprox 12mb
Thanks!!