A minimal Electron application with flutter & dart
# Clone this repository
git clone https://github.com/hayderux/electron-flutter
# Go into the repository
cd electron-flutter
#install flutter dependencies
flutter pub get
# Install dependencies
npm install
# Run the app
npm run dev
To build for production, first run npm run build
.
The output directory, build
contains a package.json
pointing to the built
application, and can be run as follows:
cd build
npm install
npm start
The output directory's package manifest, build/package.json, includes electron-packager, and therefore can be packaged for distribution on Windows, MacOS, and Linux.
to build for the host platform run:
npm run build
To build for all platforms, run :
npm run package