-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron app bundler #301
Comments
At this point, use #322 (comment) |
Current version of the stlite desktop app development[Updated: use Repo: https://github.com/whitphx/stlite-desktop-example
{
"name": "xxx",
"version": "0.1.0",
"main": "./build/electron/main.js",
"scripts": {
"dump": "dump-stlite-desktop-artifacts",
"serve": "NODE_ENV=\"production\" electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"postinstall": "electron-builder install-app-deps"
},
"build": {
"files": [
"build/**/*"
],
"directories": {
"buildResources": "assets"
}
},
"devDependencies": {
"@stlite/desktop-cli": "^0.12.0",
"electron": "20.2.0",
"electron-builder": "^23.3.3"
}
}
|
TODO:
|
@blackary I don't know why it did not work (it was built on my local machine and uploaded manually to the GitHub release page). |
@whitphx Thanks! I installed the new dmg, and it installed fine, but when it opens on my machine, it shows the loading bar briefly, then goes to a blank page |
I followed the steps and it's working fine on my mac. When I run the following code as
|
@blackary Thanks, |
@mkisono Thank you for trying it out, and
it was a great report :)
it looks like the known issue as #34 (comment) ; |
@whitphx I gave that a try, and now am unable to reproduce the blank page I was getting 🤷 . So, the dmg you made is working for me now. (Though, I still get that same error if I close and reopen the app) |
I will close this issue. |
is this still working or is there an update on how to convert a streamlit app to .exe? |
Rel #69
@stlite/desktop
with its./build
directory in which the built JS app code is included. Publish @stlite/desktop NPM package #314@stlite/stlite-kernel
with the wheels that is needed in the following bundling steps. feature/bundle kernel package #302Then, the Streamlit app creator who wants to bundle the app with Electron will do the following steps.
package.json
looking like below. It is extracted from thepackge.json
in@stlite/desktop
only with theelectron-builder
configs and@stlite/stlite-kernel
dependency, from which the wheels are loaded at the bundle time../build
directory from@stlite/desktop
../bin/dump_snapshot.ts
from@stlite/desktop
(this scripts needs the wheel files from@stlite/stlite-kernel
).yarn dist
.In the future, creating the project with
package.json
above can be automated likeyarn create
.The text was updated successfully, but these errors were encountered: