Setapp lib Node.JS plugin

The only development dependency of this project is Node.js, so make sure you have it installed.

Prerequisites

  • Download Setapp Library archive at the top of the Add New Version/Edit Version page (libSetapp<AppName>.zip) in vendor account.
  • Unzip this archive to the root of this project to folder libSetapp.

Build process

  1. Initial dependencies installation:
npm install
  1. Build libSetapp nodejs wrapper:
npm run build
  1. Use setapp.node in your Electron app project(documentation):
const setapp = require(process.resourcesPath + "/setapp.node");
  1. Run integration script in order to add libSetapp to your Electron app:
./integrate_setapp.sh
params:
 app - path to your builded application <AppName>.app
 sign - code sign identity to resign your updated build