subpatches

The solution to make patches

Usage no npm install needed!

<script type="module">
  import subpatches from 'https://cdn.skypack.dev/subpatches';
</script>

README

subpatches

Installing

yarn global add subpatches
# or
npm install -g subpatches

Introduction

The subpatches workflow is based on the Electron patching system, you need to have a directory with patches, config.json inside them, and directories with patches itself.

patches
├── config.json <-- this describes which patchset directory is applied to what project
├── project-neutron
│   ├── .patches
│   ├── accelerator.patch
│   ├── add_contentgpuclient_precreatemessageloop_callback.patch
│   ⋮
├── gf
│   ├── .patches
│   ├── add_a_something_special.patch
│   ⋮
⋮

Usage

Applying all patches

# in root directory
$ subpatches apply -c patches/config.json

Adding a new patch

$ cd directory/with/need/to/patch
# modify the code
$ git commit
$ subpatches -o ../patches/gf

License

MIT