PhoneGap Build API for Node.js - Unable to load a custom build -
i trying upload zip file containing app phonegap build using api node.js doesn't work, if upload file manually website.
after authentication piece of code:
pgbuild.auth({ token: phonegapbuildtoken }, authenticationresponse);
in callback following:
function authenticationresponse(e, api){ unlockandroidkeymethod(api); unlockioskeymethod(api); var options = { form: { data: { platforms: ['android', 'ios'] }, file: './www/xxx.zip' } }; api.post(phonegapendpoint + '/build', options, function(ee, data) { console.log('## build in progress...'); console.log(ee); console.log(data); //waitingforpendingbuild(api); }); }
inside option pointing file want load
file: './www/xxx.zip'
the problem whatever put there doesn't picked up, phonegap build builds file file loaded through website.
can help, please? :)
thanks
ps: no error
i have managed solved problem - problem on how create zip file apparently...phonegap build api don't zip files done gulp-zip, using archiverjs (https://archiverjs.com/docs/) solves issue :)
thanks
Comments
Post a Comment