@stlite/desktop 0.55.1 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,9 +26,9 @@ Convert your [Streamlit](https://streamlit.io/) application into a desktop app w
26
26
  }
27
27
  },
28
28
  "devDependencies": {
29
- "@stlite/desktop": "^0.54.0",
29
+ "@stlite/desktop": "^0.57.0",
30
30
  "cross-env": "^7.0.3",
31
- "electron": "^30.0.1",
31
+ "electron": "30.0.8",
32
32
  "electron-builder": "^24.13.3"
33
33
  },
34
34
  "stlite": {
@@ -95,11 +95,24 @@ See the [./samples](./samples) directory for sample projects.
95
95
  To make your app secure, be sure to use the latest version of Electron.
96
96
  This is [announced](https://www.electronjs.org/docs/latest/tutorial/security#16-use-a-current-version-of-electron) as one of the security best practices in the Electron document too.
97
97
 
98
+ ## Use a custom Pyodide source
99
+
100
+ The `dump` command downloads some Pyodide resources such as the prebuilt package wheel files from [the JsDelivr CDN](https://pyodide.org/en/stable/usage/downloading-and-deploying.html#cdn) by default.
101
+ If you want to use a different Pyodide source, for example when accessing JsDelivr (`cdn.jsdelivr.net`) is restricted in your environment,
102
+ you can specify a URL or a path to the Pyodide source by setting the `--pyodide-source` option of the `dump` command.
103
+
104
+ For example, if you downloaded a Pyodide package from the [Pyodide releases](https://pyodide.org/en/stable/usage/downloading-and-deploying.html#github-releases) and saved it in `/path/to/pyodide/`, you can specify the URL to the Pyodide package like below.
105
+
106
+ ```sh
107
+ npm run dump -- --pyodide-source /path/to/pyodide/
108
+ yarn dump --pyodide-source /path/to/pyodide/
109
+ ```
110
+
98
111
  ## Configure the app
99
112
 
100
113
  ### Hide the toolbar, hamburger menu, and the footer
101
114
 
102
- If you want to hide the toolbar, hamburger menu, and the footer, add the following to your `package.json` file and run the `dump` command again. By adding the `stlite.desktop.embed` field, the dumped Streamlit app will work in the [embed mode](https://docs.streamlit.io/streamlit-community-cloud/get-started/embed-your-app#embedding-with-iframes) which hides the toolbar, hamburger menu, and the footer.
115
+ If you want to hide the toolbar, hamburger menu, and footer, add the following to your `package.json` file and run the `dump` command again. By adding the `stlite.desktop.embed` field, the dumped Streamlit app will work in the [embed mode](https://docs.streamlit.io/streamlit-community-cloud/get-started/embed-your-app#embedding-with-iframes) which hides the toolbar, hamburger menu, and footer.
103
116
 
104
117
  ```json
105
118
  {