GithubHelp home page GithubHelp logo

electron-npg-automator's Introduction

electron-npg-automator

Automate node-pre-gyp deployment of native modules for electron

This is a small tool meant to allow you to publish new builds of your native node addon for node-pre-gyp whenever a new version of either your module or of electron is published.

How it works

This module polls the github APIs hourly, looking for the latest published releases of your module and of electron.

Note: This requires you to publish releases on github, not just to push tags.

It then tags itself with tags specifying the 2 most recent versions of both electron and your module, so that any of the 4 resulting builds that don't already exist will be published. Appveyor and Travis will pick up these tags, and do builds, which then get published to AWS using node-pre-gyp.

Setup and Configuration

First, fork the repo. It needs to be published to Github for Appveyor and Travis to work. Configure appveyor and travis against your repo for tag events. Install is just npm install, and to run the server use npm start. Basic configuration is set up by either a config file config.js/config.json in the root of the folder, or by environment variables. Environment variable names are all prefixed with electron_npg_automator_ (e.g. electron_npg_automator_remote)

What json example default
Module module 'myorg/mymodule' N/A
Remote remote 'upstream' 'origin'
Github Access Token gh_token 'adf234234134141212' N/A
Poll Interval in milliseconds poll_interval 3600000 (1hr) 86400000

Additionally, you can add a script ci/custom_prepare.js. This script should return a promise, which resolves is preparation was successful. The default behavior if no custom script is in place is to run npm intall in your modules directory. Use a custom script if you have any custom installation steps you need done before compilation.

electron-npg-automator's People

Contributors

maxkorp avatar joshaber avatar johnhaley81 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.