rhashimoto / wa-sqlite

WebAssembly SQLite with support for browser storage extensions
MIT License
888 stars 57 forks source link

mjs and masm files ( /dist) are missing #70

Closed jalsco closed 1 year ago

jalsco commented 1 year ago

Hi @rhashimoto 😊 Thank you for your work 🙏🏻 I am hoping that I will be able to get the demo running. However, seems like a couple of files missing . Specifically these 2 files are missing:

~/dist/wa-sqlite-async.mjs
~/dist/wa-sqlite.mjs
~/dist/wa-sqlite-async.wasm
~/dist/wa-sqlite-async.wasm

From where can I get those files ? In the meantime, I just copied them from : https://rhashimoto.github.io/wa-sqlite/dist/

Also it seems to need CSP settings. wasm-unsafe-eval

rhashimoto commented 1 year ago

Please read the Build section of the README.

jalsco commented 1 year ago

Hi @rhashimoto thanks for your fast reply. And thanks for a wonderful project !

Yes I had already read that section of the README. I am using the "buildless", with pre-built artifacts. Are you saying I do not need those files if I do something a certain way ? Could you please elaborate ? 🤷🏻‍♂️

The webpages I am creating (actually porting existing tools, to web) , are progressing well now. But I am using the files I mentioned above (copied from the link I gave above). Is there another way I should have done it ?

rhashimoto commented 1 year ago

Your issue says that files are missing from dist/. They can be found on the "buildless" branch, or you can build them yourself if you are on the "master" branch.

https://github.com/rhashimoto/wa-sqlite/tree/buildless/dist

jalsco commented 1 year ago

Thanks for the link. When I did the git clone those did not come across.

the .git/branches folder is empty.

Without that link provided (thanks 🙏🏻😊 ), I probably would not have enough knowledge of git and/or github to have found them easily. But there they are 😉