@polleverywhere/electron-app v1.1.0
Electron for slideware
VERY IMPORTANT NOTE - all electron development is on working branches currently. Any projects should attempt to align with the electron-app
branch for prototype development.
Table of Contents
Semi-Quickstart How To Link singularity locally Running the Electron app Running on Window's VM
Semi-Quickstart
setup local linkings for slideware bindings and singularity
cd <frontend_repo>
git pull
git checkout electron-app
yarn link
How to link singularity locally
cd <singularity>
yarn link @polleverywhere/slideware-bindings
yarn install
yarn start
Running the Electron app
To do development on mac, try:
cd <black-hole repo>
cd packages/electron-app
npm install
npm run start:dev
Running on Window's VM
Prerequisites
Follow setup instructions in win_presenter's Getting Started
Commands
####Make sure you check out the electron-app branch until it's merged
cd <black-hole repo>
git checkout electron-app
Copy electron .exe to win_presenter
Change directories to the electron app in the black-hole repo
cd packages/electron-app
npm install
If you haven't created a docker image, run make This will create a docker container with the capability to build for windows.
make
Otherwise, if just updating typescript and you have already created the docker image.
make copy-js-windows
Start Window's VM with correct win_presenter repo
cd ~/win_presenter
git checkout electron-app
vagrant up win_dev
Optionally, you can ssh into the win_dev vm from your mac terminal directly
vagrant ssh win_dev
cd C:\vagrant
rake run
Environment Variables for debugging
| PE_DEBUG_RENDERERS=true | Will display the inspect tools on all renderers | | PE_SHOW_HIDDEN_RENDERERS | will display all renderers, does not hide windows like the IpcServer, background window, etc. | | PE_PRESENTER_URL | Will point the main window to whatever is stored in the env var |
References
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago