/p5.serialcontrol

Desktop application and server for p5.serialport.js

Primary LanguageJavaScriptOtherNOASSERTION

p5.serialcontrol

Deprecation notice

This app was deprecated in 2022, in favor of maintaining the p5.serialserver available at https://github.com/p5-serial/p5.serialserver.

About

This repository is part of the p5-serial project, created in 2015 at New York University's Interactive Telecommunications Program by Shawn van Every, Jen Kagan, and Tom Igoe. For more info please visit the repository at https://github.com/p5-serial/p5.serial.github.io/ GUI (Electron) application for use with the p5.serialport library.

Runs and controls p5.serialserver (no need to install and run it separately)

Download a release here: releases

OSX Development

Install dependencies

  1. npm install

Rebuild serialport library (more on this here)

  1. rm -rf node_modules/serialport/build/*
  2. node_modules/.bin/electron-rebuild -w serialport -f

OSX Compilation

npm install electron-packager
# for Mac OSX X64 either:
electron-packager ./ p5.serialcontrol --arch=x64 --platform=darwin --overwrite
# or
npm run package-mac-x64
# for or Mac OSX ARM either:
electron-packager ./ p5.serialcontrol --arch=arm64 --platform=darwin --overwrite
# or
npm run package-mac-arm64

Windows Development

Install dependencies

  1. npm install

Rebuild serialport library

  1. cd p5.serialcontrol/node_modules/p5.serialserver/node_modules/serialport
  2. HOME=~/.electron-gyp node-gyp rebuild --target=1.7.8 --arch=x64 --dist-url=https://atom.io/download/atom-shell

Note: target is the Electron version and should match version below

Windows Compilation

  1. npm install electron-packager
  2. electron-packager ./ p5.serialcontrol --version=1.7.8 OR npm run package-win