Simple wrapper around riku-device-ui that allows access to system level functions.
In package.json
author
- Required to build linux distributables (required)build
- Configuration required byelectron-builder
to build distributablefiles
- List of directories and files required to be packaged into the Electron app during build
yarn pull-ui
- Uses Node to get latest release ofriku-device-ui
from GitHub releases and places it at root of project directoryyarn build
- Pulls UI usingyarn pull-ui
and builds the current Electron app targeting the architecture of the host systemyarn release
- Required by GitHub Actions to draft a release on repository releasesyarn postinstall
- Makes sure app dependencies are installed after app is built (used by electron-builder)
Required env variables
GH_TOKEN
- Required personal access token that has therepo
scope. (GITHUB_TOKEN provided by GitHub Actions doesn't have the required scope)NODE_ENV
- Eitherdevelopment
orproduction
You can test new workflows locally with nektos/act. It requires docker to run. After installing Docker, change directory to project and run act -l
to see the the workflows defined in the local repository, and simply run act
start the workflow.
- Implement switching from local build directory to webpack-dev server depending on
NODE_ENV
- Write tests using Spectron
- Test Electron deb build on Raspbian
- Test MQTT with Electron build