mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 15:27:45 +03:00
add nightly instructions
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
5b27ced13d
commit
7f93bf8074
@ -1,12 +1,19 @@
|
||||
# Hello, World!
|
||||
|
||||
To run this website, first compile either of these identical apps:
|
||||
To run this website, we first compile the app that uses the Wasm platform:
|
||||
|
||||
- If you use the nightly roc release:
|
||||
```bash
|
||||
./roc build --target=wasm32 examples/platform-switching/rocLovesWebAssembly.roc
|
||||
```
|
||||
- If you start from the compiler source code:
|
||||
```bash
|
||||
# Build roc compiler if you have not done so already
|
||||
cargo build
|
||||
# Compile the app that uses the Wasm platform
|
||||
target/debug/roc build --target=wasm32 examples/platform-switching/rocLovesWebAssembly.roc
|
||||
```
|
||||
We then move the file:
|
||||
```bash
|
||||
# Go to the directory where index.html is
|
||||
cd examples/platform-switching/web-assembly-platform/
|
||||
# Move the .wasm file so that it's beside index.html
|
||||
|
Loading…
Reference in New Issue
Block a user