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

Unable to run btfs.wasm file #8

Open
qalqi opened this issue Dec 6, 2024 · 4 comments
Open

Unable to run btfs.wasm file #8

qalqi opened this issue Dec 6, 2024 · 4 comments

Comments

@qalqi
Copy link

qalqi commented Dec 6, 2024

Downloaded v2.3.2 go-btfs-wasm_POC and https://github.com/simbadMarino/btfs-sharedLib/archive/refs/tags/v2.3.2_wasm.zip

Placed the provided wasm file at /WASM_TEST
getting Error: mkdir /btfsrepo: not implemented on js

Capture

Expected - https://www.youtube.com/watch?v=oEs3YfyDj9E

@simbadMarino
Copy link
Owner

simbadMarino commented Dec 15, 2024

Hello, this build is still a proof of concept, by the time I released it I could not find a plug & play way to perform file system operations. Please try building it with newest go stable release to see if this is now improved. I'll try it myself after bumping the lib version to go-btfs v3.1.0.

I was busy with some dCloud deps updates hehe but next is to update this repo ;)

Current wasm build state:

image

@qalqi
Copy link
Author

qalqi commented Dec 16, 2024

ok great! I can try to build v3.1.0 to wasm
Can you share me steps/commands to build wasm binary?

Thanks

@qalqi
Copy link
Author

qalqi commented Dec 17, 2024

are there any specific steps for generating wasm build? tx

@simbadMarino
Copy link
Owner

simbadMarino commented Dec 20, 2024

Hello, you have to switch to the wasm branch and :

  1. cd cmd/btfs/
  2. make wasm

I'm working on some README updates, and upgrading to BTFS 3.2, stay tuned ;) . Feel free to fork the wasm branch and submit PRs , happy to see this actively developed and some interest from the community :) . I'm currently not working on the wasm fork so you wont see any overlaps soon

Let me know if you run into issues

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