Skip to content

Template for building applications with dazzler & electron.

Notifications You must be signed in to change notification settings

T4rk1n/dazzler-electron-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dazzler Electron Template

Electron application built with dazzler.

Getting started

  • Create a venv :python -m venv venv.
  • Activate: . venv/bin/activate.
  • Install dependencies: pip install -r requirements.txt.
  • Install Electron globally to run in dev mode: npm i -g electron.
  • Start a dev instance: dazzler electron app.py.
  • Build executable for the current platform: dazzler electron-build app.py.
    • Find the executable in electron/dist/<platform>_unpacked.
  • Change the build target:
    • build with NSIS on Windows: dazzler electron-build app.pu --target NSIS
    • build AppImage for Linux: dazzler electron-build app.py --target AppImage

Customizing the application

Configuration

Rename application for packaging in dazzler.toml:

[electron.metadata]
app_name = "AppName"

Code

Rename window title in main.py:

...
page = Page(
    title='Window title',
    ...
)

Change layout, window settings, etc...

About

Template for building applications with dazzler & electron.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages