Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

bodhiproject/bodhi-electron

Repository files navigation

Installation

  1. git clone https://github.com/bodhiproject/bodhi-graphql.git

  2. Run npm install to install all dependencies.

Run Dev Environment

npm start           // With Electron UI window
npm run start:noui  // Without Electron UI window

Build Release Versions

We are currently using Electron and Electron-Builder to package our apps into native format depending on OS.

  1. npm install to install all dependencies.

  2. Run the build script for the appropriate OS:

     // Mainnet/Testnet build
     npm run build:mac // creates dmg
     npm run build:win // creates exe
     npm run build:lin // creates appimage
    
     // Testnet only build
     npm run build:mactest // creates dmg
     npm run build:wintest // creates exe
     npm run build:lintest // creates appimage
    
  3. Run the executable

Bodhi-Server

bodhi-server is packaged as an NPM module to provide all the server logic to the Electron client. It is important to have the same version code in package.json as what is in bodhi-server's package.json.

Updating UI Files

  1. In the bodhi-ui repo, npm run build to build the UI files.

  2. Copy all the files in bodhi-ui/build folder to bodhi-electron/ui