Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

support running in browsers (with emscripten) #19

Open
8 of 9 tasks
ghost 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

ghost 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

@ghost
Copy link

ghost 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
@ghost ghost added enhancement New feature or request compat Issues related to compatibility wasm Issues on WebAssembly labels Feb 12, 2024
@ghost
Copy link
Author

ghost commented Apr 12, 2024

im still trying to make this

@ghost
Copy link
Author

ghost commented Apr 13, 2024

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

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

This comment was marked as spam.

@ghost
Copy link
Author

ghost commented Apr 15, 2024

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

@ghost
Copy link
Author

ghost 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

@ghost
Copy link
Author

ghost 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

@ghost ghost linked a pull request Apr 17, 2024 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.

1 participant