@capacitor-community/electron-core v1.2.3
Capacitor Electron
Capacitor community support for the Electron platform.
Maintainers
Maintainer | GitHub | Social | Sponsoring Company | Primary |
---|---|---|---|---|
Mike S. | IT-MikeS | @IT_MikeS | Volunteer | Yes |
Max Lynch | mlynch | @maxlynch | Ionic | No |
Maintenance Status: Actively Maintained
Docs:
- Typedoc Docs about config and usage options.
Basic Usage Steps:
- Run
npx cap add electron
in your project directory. - Open a terminal in the
electron
folder that was created in your project directory and runnpm 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:
- Editing the
splash.png
file directly. - Place your own image file into the
assets
folder and pass theimageFilePath
property as part ofsplashScreen -> splashOptions
intoCapacitorElectronApp()
. For example if your image was namedmyImage.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.
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago