Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CSharpWasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ This project enables building and running C# code in the browser using WebAssemb

- **CSharpCodeRunner.cs**: A class responsible for compiling C# code, providing the necessary functionality to run the code dynamically.

- **buildAndCopy.sh**: A shell script that builds the project and copies the necessary files into the `Browser_IDE/CSharpWasm` directory. This script helps automate the build process for easy integration with the browser.
- **buildAndCopy.sh**: A shell script that builds the project and copies the necessary files into the `../CSharpWasmExpo` directory. This script helps automate the build process for easy integration with the browser.

### Running the Build and Copy Script

To build the project and copy the necessary files into the `Browser_IDE/CSharpWasm` directory, run the following shell script:
To build the project and copy the necessary files into the `../CSharpWasmExpo` directory, run the following shell script:

```bash
./buildAndCopy.sh
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The final binary is of course WebAssembly as well, and is linked to a WebAssembl

Finally this binary is executed securely in an asynchronous WebWorker. The WebWorker passes commands back to the main window, which then handles actually rendering graphics, playing audio, passing user input back, etc.

## "Backend" Development
## "Backend" Development (DONT FOLLOW THESE STEPS THIS FEATURE IS BEING FIXED)

### SplashKit Wasm Library Manual Compilation (JavaScript backend)
First, install Emscripten version 3.1.48, which is required to successfully build the SplashKit core and compile it to Wasm for browser use. The easiest way to do this is via the `emsdk`. Installation instructions are here - [Getting Started](https://emscripten.org/docs/getting_started/downloads.html)
Expand Down Expand Up @@ -137,6 +137,18 @@ emmake make -j8

For more info, see the [this pull request](https://github.com/thoth-tech/SplashkitOnline/pull/65).

### SplashKit Compiler Library Manual Compilation (C# backend)
1. Firstly, install the [dotnet SDK](https://dotnet.microsoft.com/en-us/download). Please note at current SKO has **only been tested with SDK 9.0**
2. Once the dotnet SDK has been installed Run:
```bash
cd CSharpWasm
chmod +x ./buildAndCopy.sh
./buildAndCopy.sh
```
3. Once this step is complete you should be able to use C# in SKO

If you are using **windows**, please execute the command above using git bash or another terminal emulator.

## License

Most of the SplashKit Online IDE is licensed under the GNU General Public License v3.0
Expand Down
Loading