Repository navigation
Desktop app for Windows, macOS and Linux (D5) - #53
Merged
Merged
Conversation
- packaging/desktop: package.json (@stlite/desktop 0.105.1, Electron 45.0.0, electron-builder 26.18.0; app id edu.nccu.schultzlab.eagleplot; per-user NSIS, ad-hoc-signed dmg, AppImage), lockfile, icon, and build_desktop.py (stage the app, npm ci, dump, open https links in the system browser, electron-builder). - runtime: recognise the desktop build from Electron (stlite can't pass environment variables); desktop capabilities: settings persist in the app-data folder, folder import off until D5.2, no NIST fetch, no deferred package loads. - scripts/desktop/smoke.js: launches the built app (not yet passing). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…top (D5, WIP) - .github/workflows/desktop-builds.yml: Windows (NSIS), macOS (dmg x64 + arm64), Linux (AppImage) on releases (attached), by hand, and on PRs that touch the desktop build; Linux also launches the app and runs the smoke test (AppArmor userns restriction lifted for Electron's sandbox). - runtime: on_click_downloads capability, off on desktop: stlite's own page sends st.download_button(data=callable) to https://stlite.invalid, where it fails; figures.LAZY_DOWNLOAD honours it, so desktop downloads are prepared in advance and go through the kernel. - packaging/desktop/README.md (build, pins, unsigned first launch), tests/test_desktop_build.py (link patch, package list, pins, mounts), scripts/desktop/smoke.js (download caught in Electron's main process), Linux executable 'eagleplot', CHANGELOG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…process Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…il on them Streamlit 1.65 checks each download button's URL at stlite's placeholder origin; it can't resolve and nothing depends on it (the download goes through Python). Locally (non-root, Xvfb): ready in ~12 s, link to the system browser, desktop build recognised, plot in 2 s, PNG download arrives, settings persist across a restart, no network requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ngs to render On Windows the desktop config path prints with backslashes, so compare Path objects. On the slower CI runner the Settings page wasn't rendered when its text was read: wait for the Save defaults button and the expected text first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 6, 2026
Merged
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 adds EaglePlot as a desktop program (roadmap D5.1 and D5.3). It's the same app as the browser version, packaged with
@stlite/desktopinto Electron. Python (Pyodide) and every package are bundled, so it needs no Python install and no network, and no admin rights to install.What's added
packaging/desktop/:package.jsonand lockfile:@stlite/desktop0.105.1 (Streamlit 1.65 and Pyodide 314.0.3, the same as the browser build), Electron 45.0.0 and electron-builder 26.18.0.edu.nccu.schultzlab.eagleplot..exe.dmgfor arm64 and x64, ad-hoc signed so it runs on Apple Siliconbuild_desktop.py: stageseagleplot/and.streamlit/, runsnpm ci, dumps Pyodide and the packages, opens https links in the system browser, then runs electron-builder.--pyodide-sourcebuilds against a local Pyodide;--dirbuilds an unpacked app only.README.md: building, the pins, what differs from the browser version, and what users see when they first open an unsigned build..github/workflows/desktop-builds.yml:windows-2025,macos-15andubuntu-24.04.scripts/desktop/smoke.js(Playwright, driving Electron):shell.openExternalApp changes
runtimerecognises the desktop build from Electron (process.versions.electron), because @stlite/desktop can't pass environment variables to Python.config.jsonlives in the user's app-data folder, mounted at/home/pyodide/.eagleplot.requestssupport needs the browser's XMLHttpRequest, which Node lacks, so the page links out instead.on_click_downloadscapability. On desktop, stlite's own page sendsst.download_button(data=callable)tohttps://stlite.invalid, where it fails.figures.LAZY_DOWNLOADhonours this capability, so desktop downloads are prepared in advance and go through Python.build_desktop.pypatches its Electron main process so that http(s) links open in the system browser. If a future @stlite/desktop changes that code, the build stops and says so, and a test covers it.Tested
tests/test_desktop_build.py: the link patch, and the build stopping when that code changes; desktop packages ⊇ the browser build's; version pins and Pyodide 314.0.3; the mounts.This PR's CI run is the first real Windows and macOS build.
Not in this PR
🤖 Generated with Claude Code