This document describes how to configure an Electron project for the GME APIs for Electron.
Windows Installer (.msi) 64-bit
for Windows.Node.js command prompt
in the application list and open a terminal window.Run the following command in the terminal to install Electron. V4.0.0 or later is recommended.
$ npm install electron -g
$ npm install gme-electron-sdk@latest --save
const { GmeContext } = require('gme-electron-sdk');
// import gmesdk from 'gme-electron-sdk';
gmeContext = new GmeContext();
// Get the SDK version number
gmeContext.GetSDKVersion();
Install the packaging tool. We recommend you use Electron Forge. You can run the following command:
Add Electron Forge to your application's development dependencies and run the import
command to set the scaffold of Forge:
npm install --save-dev @electron-forge/cli
npx electron-forge import
Run the make
command of Forge to create a distributable application:
npm run make
Was this page helpful?