💾 Archived View for kernelzechs.com › ojd › docs › build.gmi captured on 2022-04-29 at 12:23:18. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Below are the instructions for developing/deploying Open Joystick Display 2.x. Please note that these instructions will change when version 3.x is released as this will have a completely different build process for it.
- Node LTS Version 12
- Yarn (From Node NPM)
- Gulp (From Node NPM)
- Python 2 and 3
- Compiler Suite (For Binary Building)
- Windows: Visual Studio Express (or you can grab build tools from Chocolaty)
- MacOS: XCode with Command Line Tools
- Linux: GCC/G++ or CLANG/LLVM
In the root of the `open-joystick-display` directory do the following:
- `gulp electron-rebuild`
- `yarn start`
Rebuilding electron for your target platform is required due to the bindings required for `node-serialport`. If you skip this step and you launch electron it will have a very broken interface and won't load completely. Do not skip this step.
In the root of the `open-joystick-display` directory run `gulp` to enable the CSS watcher. This compiles the LESS into CSS.
In the root of the `open-joystick-display` directory do the following:
- Run: `yarn install`
- Run: `yarn build`
Note that `yarn build` does everything including building CSS and rebuilding the electron binary for `node-serialport`. You don't need to do anything else here.
The binaries will be built in the `/dist` you will see various formats for bundles, the formats for each operating system are as follows:
- Windows
- Package Types: `zip` and `exe`
- macOS
- Package Types: `zip` (DMG no longer supported)
- Linux
- Package Types: `tar.gz`, `deb`, and `AppImage`
The raw build will also be located in the `/dist/${os}-unpacked` directory if you wish to bundle it yourself.