Skip to content

Build and deploy official Emscripten client - #71

Merged
def- merged 1 commit into
ddnet:masterfrom
Robyt3:Build-Emscripten
Jul 29, 2026
Merged

Build and deploy official Emscripten client#71
def- merged 1 commit into
ddnet:masterfrom
Robyt3:Build-Emscripten

Conversation

@Robyt3

@Robyt3 Robyt3 commented Jul 28, 2026

Copy link
Copy Markdown
Member

Setup instructions assuming emsdk should be installed in $HOME:

rustup install 1.89.0
rustup target add wasm32-unknown-emscripten

cd "$HOME"
git clone https://github.com/emscripten-core/emsdk emsdk
cd emsdk
./emsdk install 4.0.22
./emsdk activate 4.0.22

@Robyt3
Robyt3 marked this pull request as draft July 28, 2026 22:23
@Robyt3

Robyt3 commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

Mostly untested. Depends on ddnet/ddnet#11920.

Not sure whether we should deploy each each individual release or only the nightly version.

@def-

def- commented Jul 29, 2026

Copy link
Copy Markdown
Member

We can provide both a stable and nightly version.

@def-

def- commented Jul 29, 2026

Copy link
Copy Markdown
Member

Trying this out now

Comment thread release/build.sh
cd ddnet-source
mkdir build-emscripten
cd build-emscripten
rustup override set 1.89.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 1.89 specifically? The others are on newer versions

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Building Emscripten code with Rust versions 1.90.0 - 1.93.0 does not work. If 1.94.0 is generally available you can also try that.

Setup instructions assuming emsdk should be installed in `$HOME`:

```sh
rustup install 1.89.0
rustup target add wasm32-unknown-emscripten

cd "$HOME"
git clone https://github.com/emscripten-core/emsdk emsdk
cd emsdk
./emsdk install 4.0.22
./emsdk activate 4.0.22
```
@Robyt3
Robyt3 force-pushed the Build-Emscripten branch from 5d7c655 to 465a8e8 Compare July 29, 2026 08:21
@Robyt3
Robyt3 marked this pull request as ready for review July 29, 2026 08:22
@def-
def- merged commit 0d9c3c4 into ddnet:master Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants