1.2.3 • Published 4 years ago

@capacitor-community/electron-core v1.2.3

Weekly downloads
128
License
MIT
Repository
github
Last release
4 years ago

Capacitor Electron

Capacitor community support for the Electron platform.

Maintainers

MaintainerGitHubSocialSponsoring CompanyPrimary
Mike S.IT-MikeS@IT_MikeSVolunteerYes
Max Lynchmlynch@maxlynchIonicNo

Maintenance Status: Actively Maintained

Docs:

Basic Usage Steps:

  1. Run npx cap add electron in your project directory.
  2. Open a terminal in the electron folder that was created in your project directory and run npm run electron:start to start your app with the default config.

Using your own image for the Splash Screen

@capacitor-community/electron looks in the YOUR_APP_ROOT/electron/assets folder for a splash.png file by default, but you can use your own image by using one of the following methods:

  1. Editing the splash.png file directly.
  2. Place your own image file into the assets folder and pass the imageFilePath property as part of splashScreen -> splashOptions into CapacitorElectronApp(). For example if your image was named myImage.gif (yes animated GIF's are valid) you would pass it like this:
  const {app, ......} = require('electron');
  const path = require('path');

  .....

  const myCapacitorApp = new CapacitorElectronApp({
    splashScreen: {
      splashOptions: {
        imageFilePath: path.join(app.getAppPath(), "assets", "myImage.gif")
      }
    }
  });

Great electron packages to consider for your project.

  • Electron-Unhandled: Catch unhandled errors and promise rejections in your Electron app.
  • Electron-Timber: Pretty console logger for Electron apps.
  • Electron-Util: Useful utilities for Electron apps and modules.
  • Electron-Debug: Adds useful debug features to your Electron app.
  • Devtron: An open source tool to help you inspect, monitor, and debug your Electron app.
  • Electron-Better-IPC: Simplified IPC communication for Electron apps.
  • Electron-Store: Simple data persistence for your Electron app - Save and load user preferences, app state, cache, etc

And more can be found on the Awesome Electron List.

1.2.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-alpha.3

4 years ago

1.0.0-alpha.2

4 years ago

1.0.0-alpha.0

4 years ago

0.5.4

4 years ago

0.5.2

4 years ago

0.5.0

4 years ago

0.5.1

4 years ago

0.4.1

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.2

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.9

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.19

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago