The only development dependency of this project is Node.js, so make sure you have it installed.
- 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
.
- Initial dependencies installation:
npm install
- Build
libSetapp
nodejs wrapper:
npm run build
- Use
setapp.node
in your Electron app project(documentation):
const setapp = require(process.resourcesPath + "/setapp.node");
- 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