Skip to content

apprunjs/apprun-electron-forge

Repository files navigation

Using AppRun with electron-forge

This is an app built with AppRun and Electron (electron-forge).

You can send messages from the main process (the menus) to AppRun app in the renderer process.

submenu: [
  {
    label: 'Home',
    click: () => mainWindow.webContents.send('@apprun', '#Home'),
  },
  {
    label: 'Contact',
    click: () => mainWindow.webContents.send('@apprun', '#Contact'),
  },
  {
    label: 'About',
    click: () => mainWindow.webContents.send('@apprun', '#About'),
  },
}

You can also send message from AppRun app to the main process.

<a href="#" onclick={() => app.run('@electron', 'open-apprun')}>AppRun</a>
ipcMain.on('@electron', (_, ...args) => {
  if (args[0] === 'open-apprun') open('https://github.com/yysun/apprun');
});
  • Use npm start to start the dev server
  • Use npm run package to build for production

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published