Skip to content

Conversation

autr
Copy link

@autr autr commented Mar 3, 2020

Hello, I ran in to many issues from an out of date Electron package when building the frontend (electron-prebuilt was discontinued 3 years ago!). It would've been possible to play around with nvm but decided it was more worthwhile to refactor it - security issues and portability considered. The branch has been tested on MacOS but should also now play smoothly with different machines:

Electron upgraded to ^8.0.3, remove unused packages
Refactored, use ipcMain / ipcRenderer
Change vars and functions to ES6-style const / let / () =>
Remove redefined vars and path util / path var conflicts
Add failsafes for defaultSettings; if a setting.json hasn't been reloaded it will try to resolve two paths: "../../../" (ie. openFrameworks), and "../../of-v" (ie. release download)
General spring-cleaning of logs and unused vars
Switch to yarn over npm; and add yarn.lock into repo

I did some work earlier this evening that adds optional preprocessor flags for addons to the CLI and also frontend, so accidentally did this refactor over the top (not tryin' to sneak it in). If that doesn't fit with the PG vision then feel free to remove it from index.html, baseProject.h/cpp etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant