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

wasi preopens? #757

Closed
xdBronch opened this issue Apr 4, 2024 · 2 comments
Closed

wasi preopens? #757

xdBronch opened this issue Apr 4, 2024 · 2 comments

Comments

@xdBronch
Copy link

xdBronch commented Apr 4, 2024

is it currently possible to pass custom preopens when running wasm files? if not is there any possibility of this? some programs expect specific preopens to be present which means they dont work in a-shell

@holzschu
Copy link
Owner

holzschu commented Apr 4, 2024

The file that loads wasm files is $APPDIR/wasm.html, which loads $APPDIR/require.js and $APPDIR/wasm.js.

You can customize loading webAssembly files if you want, by copying wasm.js to your home directory and editing it to your desires, then executing it with jsc wasm.js.

Let me know if you require more assistance.

@xdBronch
Copy link
Author

xdBronch commented Apr 4, 2024

thanks i didnt realize you could do that, i think thats good enough

@xdBronch xdBronch closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants