Skip to content

Commit ea53ea7

Browse files
authored
Add instructions for Guest and HostServer to README.md (#19)
After `Guest`/`HostServer` split, build instructions should be updated.
1 parent 5c75612 commit ea53ea7

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Guest/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ swift build --triple wasm32-unknown-none-wasm -c release --product Plotter
2121
for n in Bass HiHat Kick Mix; do
2222
swift build --triple wasm32-unknown-none-wasm -c release --product $n
2323

24-
cp "${bin_path}/${n}.wasm" ~/Desktop
24+
cp "${bin_path}/${n}.wasm" $HOME
2525
done
2626

27-

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,21 @@ cd /root/build
5454
## How to Build and Run
5555

5656
Assuming you're within the cloned repository and have the latest development snapshots selected per the instructions
57-
above, first build the package:
57+
above, build modules from the `Guest` package (this will copy `.wasm` modules to the home directory of the current user):
5858

5959
```sh
60-
swift build --triple wasm32-unknown-none-wasm -c release --product swift-audio
60+
cd Guest; ./build.sh
6161
```
6262

63-
Then start the HTTP server:
63+
64+
Then build and start the HTTP server:
6465

6566
```sh
66-
python3 -m http.server
67+
cd ../ServerHost; swift run Server
6768
```
6869

69-
Open http://localhost:8000 in your browser to see the project running.
70+
Open http://localhost:8080 in your browser to see the project running. Use the web interface to upload previously built
71+
`Guest` modules from the home directory.
7072

7173
## License
7274

0 commit comments

Comments
 (0)