Coder Social home page Coder Social logo

electron-wrapper's Introduction

Riku - Electron on Device

Simple wrapper around riku-device-ui that allows access to system level functions.

Required Metadata

In package.json

  • author - Required to build linux distributables (required)
  • build - Configuration required by electron-builder to build distributable
    • files - List of directories and files required to be packaged into the Electron app during build

Scripts

  • yarn pull-ui - Uses Node to get latest release of riku-device-ui from GitHub releases and places it at root of project directory
  • yarn build - Pulls UI using yarn pull-ui and builds the current Electron app targeting the architecture of the host system
  • yarn release - Required by GitHub Actions to draft a release on repository releases
  • yarn postinstall - Makes sure app dependencies are installed after app is built (used by electron-builder)

GH Actions

Required env variables

  • GH_TOKEN - Required personal access token that has the repo scope. (GITHUB_TOKEN provided by GitHub Actions doesn't have the required scope)
  • NODE_ENV - Either development or production

Testing Locally

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.

TODO

  • 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

electron-wrapper's People

Contributors

arkdev9 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.