add nightly instructions

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2022-11-12 13:55:06 +01:00 committed by GitHub
parent 5b27ced13d
commit 7f93bf8074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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