https://github.com/alectrocute/setapp-nodejs-wrapper
https://github.com/alectrocute/setapp-nodejs-wrapper
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alectrocute/setapp-nodejs-wrapper
- Owner: alectrocute
- Created: 2021-07-28T23:27:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-28T23:36:38.000Z (almost 5 years ago)
- Last Synced: 2026-02-08T20:57:22.310Z (5 months ago)
- Language: Python
- Homepage:
- Size: 971 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setapp lib Node.JS plugin
The only development dependency of this project is [Node.js](https://nodejs.org), so make sure you have it installed.
## Prerequisites
- Download Setapp Library archive at the top of the Add New Version/Edit Version page (`libSetapp.zip`) in [vendor account](https://developer.setapp.com).
- Unzip this archive to the root of this project to folder `libSetapp`.
## Build process
1. Initial dependencies installation:
```sh
npm install
```
2. Build `libSetapp` nodejs wrapper:
```sh
npm run build
```
3. Use `setapp.node` in your Electron app project([documentation](https://docs.setapp.com/docs/library-integration)):
```js
const setapp = require(process.resourcesPath + "/setapp.node");
```
4. Run integration script in order to add `libSetapp` to your Electron app:
```sh
./integrate_setapp.sh
```
```
params:
app - path to your builded application .app
sign - code sign identity to resign your updated build
```