[L2Ork-dev] nw.js building puzzle for people who like boring puzzles

Jonathan Wilkes jon.w.wilkes at gmail.com
Wed May 29 00:03:17 EDT 2019


Hi list,

The script for building nw.js on arm has this gem in it:

curl -s https://github.com/jtg-gg/chromium.src/commit/$COMMIT.patch | git am

But github sends a redirect to its login page if you don't use its API
nowadays. The way to fetch commits using its API is like this:

curl -s https://api.github.com/repos/jtg-gg/chromium.src/commits/65f2215706692e438ca3570be640ed724ae37eaf

Now I've got the following:

* A beautiful, structured JSON with an array of files and patches

* 1980s command line tools that abhor structure

* 'git am' which expects patches in mbox format

So how do I change that line above to feed stuff to git in a format it
understands?

-Jonathan


More information about the L2Ork-dev mailing list