deanwombourne / node-diawi Goto Github PK
View Code? Open in Web Editor NEWNode library to upload to Diawi
Node library to upload to Diawi
Hi,
Took me a while to get this to run via node script, because the sample code should be:
var Diawi = require("diawi");
new Diawi({ token: "api token", path: "path/to/app.ipa" })
.on("complete", function(url) { ... })
.on("error", function(error) { ... })
.execute();
It's missing the execute()
Other than that, great work!
Regards,
Andy
It only emits "complete" event.
Diawi says poll for 1 second per 10MB uploaded app size. Currently, this library just polls 10 times.
Currently you just get Failed: Error: Error: form-data: EISDIR: illegal operation on a directory, read
which isn't very helpful. It would be nice to intercept this and return something like This seems to be a directory - if this is your .xcarchive please zip it first
.
or, ideally, we could zip and upload for the user :)
There should probably be some tests in this module, currently there are none.
i.e. from the Diawi docs:
Optional parameters
- find_by_udid (true/false as 1/0): allow your testers to find the app on Diawi's mobile web app using their UDID (iOS only)
- wall_of_apps (true/false as 1/0): allow Diawi to display the app's icon on the wall of apps
- password (string): protect your app with a password: it will be required to access the installation page
- comment (string): additional information to your users on this build: the comment will be displayed on the installation page
callback_url (URL as string): the URL Diawi should call with the resultThis won't work with this library - it's going to poll.- callback_emails (emails as string): the email addresses Diawi will send the result to (up to 5 separated by commas for starter/premium/enterprise accounts, 1 for free accounts)
installation_notifications (true/false as 1/0): receive notifications each time someone installs the app (only starter/premium/enterprise accounts)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.