Repository navigation
Electron Application Integration and Packaging - #11
Merged
Merged
Conversation
Developer-Simon
force-pushed
the
Simon/add-installation-methods
branch
from
July 18, 2026 12:16
3e29eab to
82dba9b
Compare
Developer-Simon
force-pushed
the
Simon/add-installation-methods
branch
from
July 18, 2026 12:18
82dba9b to
e980cdd
Compare
Developer-Simon
force-pushed
the
Simon/add-installation-methods
branch
from
July 18, 2026 14:10
70c5dbb to
84f3cd7
Compare
Developer-Simon
force-pushed
the
Simon/add-installation-methods
branch
from
July 18, 2026 18:00
e75ba6f to
2450d40
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new Electron packaging system for the project, enabling the Streamlit dashboard to be distributed as a standalone desktop application. The main changes include the addition of an Electron app with custom build scripts, a robust cross-language version synchronization mechanism, and improvements to version management in both Python and JavaScript. These changes ensure that the Electron package version stays in sync with the canonical project version, and that the Python runtime is bundled and built automatically for the Electron app.
Electron Application Integration and Packaging:
electron/directory, includingmain.jsfor launching Streamlit as a subprocess,preload.jsfor secure context bridging, and scripts for icon generation and version synchronization. The Electron app launches the dashboard and handles lifecycle events. [1] [2] [3] [4] [5] [6].github/workflows/electron-package.yml) and scripts for building a Python runtime (build_python_runtime.py,build-python-runtime.sh). [1] [2] [3]Version Synchronization and Management:
src/version.pymodule with aget_canonical_version()function that determines the project version from several sources (installed package,pyproject.toml, setuptools_scm, or version files). This is now the single source of truth for the project version.dashboard/settings.pyto useget_canonical_version()fromsrc.versioninstead of readingpyproject.tomldirectly, ensuring consistent version reporting. [1] [2]sync_version.jsand logic inmain.js) to automatically synchronize the Electron package version and a version artifact (electron/VERSION) with the canonical Python version. [1] [2]Testing and Documentation:
test/test_version_sync.py) to verify that the Electron package version matches the canonical project version.icon-usage-note.md).These changes provide a robust foundation for distributing the dashboard as a desktop application, with automated version management and packaging.
References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]