stlite icon indicating copy to clipboard operation
stlite copied to clipboard

Desktop/smartphone app bundler

Open whitphx opened this issue 3 years ago • 1 comments

  • Universal: PWA (already)
  • Desktop: Electron/Tauri
    • This may contribute to https://github.com/streamlit/streamlit/issues/1370
    • Electron looks better
      • It has Web Workers support
      • It has browser and NodeJS runtime
      • Tauri seems to be a "web-based UI framework on Rust" on which the web technology is for UI and Rust for the main process.
        • It seems that Tauri does not have a runtime where Pyodide runs.
    • Package name: @stlite/desktop
  • Mobile: Capacitor

whitphx avatar Aug 03 '22 11:08 whitphx

2 directions for the Electron app:

  1. Create a new app at the same level as mountable and playground and build it from scratch ( #295)
  2. Create a separate project and use @stlite/mountable on it.

For 1.,

  • Build step seems to be easier because it would be like the ones in mountable and sharing
  • Electron-forge does not work well, probably because of yarn workspace

For 2.,

  • Scaffolding with Electron-Forge works well
  • Using @stlite/mountable looks hard because all the static files have to be imported and bundled again.

whitphx avatar Sep 27 '22 08:09 whitphx

PWA and Desktop app are done. I made a new issue about the mobile apps: #390, so close this issue.

whitphx avatar Nov 06 '22 13:11 whitphx