Skip to content
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

support running in browsers (with emscripten) #19

Open
8 of 9 tasks
ookiineko opened this issue Feb 12, 2024 · 6 comments · May be fixed by #28
Open
8 of 9 tasks

support running in browsers (with emscripten) #19

ookiineko opened this issue Feb 12, 2024 · 6 comments · May be fixed by #28
Labels
compat Issues related to compatibility enhancement New feature or request wasm Issues on WebAssembly

Comments

@ookiineko
Copy link
Owner

ookiineko commented Feb 12, 2024

need a frontend wrapper, lets see when i can finish it (i have no idea about frontend things)

TODOs

  • running
  • console output
  • argument passing
  • exit code display
  • environment variables
  • filesystem management
  • CI builds
  • deploy to Cloudflare pages
  • add unit testing
@ookiineko ookiineko added enhancement New feature or request compat Issues related to compatibility wasm Issues on WebAssembly labels Feb 12, 2024
@ookiineko
Copy link
Owner Author

im still trying to make this

@ookiineko
Copy link
Owner Author

ookiineko commented Apr 13, 2024

currently web branch has staging support for running directly in desktop and mobile browsers

@ookiineko ookiineko pinned this issue Apr 14, 2024
@affggh

This comment was marked as spam.

@ookiineko
Copy link
Owner Author

this wip port is now available on Cloudflare pages: https://magiskboot-build-wasm.pages.dev/

@ookiineko
Copy link
Owner Author

ookiineko commented Apr 17, 2024

i will probably finish the file manager today EDIT: its generally working now (but with some minor issues, like currently the program runs in browser's main ui thread, which will cause freezes when doing heavy work, there is also some memory leaks...

so i guess i will keep this open until the bugs the support getting ready to merged into this main repo

@ookiineko
Copy link
Owner Author

ookiineko commented Apr 17, 2024

so i guess i will keep this open until all these get resolved

the only reliable way seems to be using pthread or workers api, but im not familiar with js... (EDIT: currently using a hack with Asyncify to achieve real-time updating

@ookiineko ookiineko linked a pull request Apr 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compat Issues related to compatibility enhancement New feature or request wasm Issues on WebAssembly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants