diff --git a/docs/data/scripts/emscripten/install_emsdk.sh b/docs/data/scripts/emscripten/install_emsdk.sh new file mode 100755 index 0000000000..d9ec29a8cb --- /dev/null +++ b/docs/data/scripts/emscripten/install_emsdk.sh @@ -0,0 +1,63 @@ +#!/bin/bash + +EMSDK_DIR="$HOME/emsdk" + +set -e + +## Format + +info() { + echo -e "\033[1;32m[INFO]\033[0m $1" +} + +error() { + echo -e "\033[1;31m[ERROR]\033[0m $1" >&2 + exit 1 +} + +## Pre Reqs. + +if ! command -v git &> /dev/null; then + error "Git is not installed. Please install Git and try again." +fi + +if ! command -v python3 &> /dev/null; then + error "Python 3 is not installed. Please install Python 3 and try again." +fi + +## Clone + +if [ -d "$EMSDK_DIR" ]; then + info "Emsdk directory already exists. Pulling the latest changes." + cd "$EMSDK_DIR" + git pull +else + info "Cloning the Emscripten SDK repository." + git clone https://github.com/emscripten-core/emsdk.git "$EMSDK_DIR" + cd "$EMSDK_DIR" +fi + +info "Installing the latest Emscripten SDK." +./emsdk install latest + +info "Activating the latest Emscripten SDK." +./emsdk activate latest + +info "Setting up environment variables." +echo "source $EMSDK_DIR/emsdk_env.sh" >> ~/.bashrc +source "$EMSDK_DIR/emsdk_env.sh" + +info "Verifying Emscripten installation." +if command -v emcc &> /dev/null; then + EMCC_VERSION=$(emcc --version | head -n 1) + info "Emscripten installed successfully: $EMCC_VERSION" +else + error "Emscripten installation failed. Please check the logs." +fi + + +# git clone https://github.com/emscripten-core/emsdk.git +# cd emsdk +#./emsdk install latest +#./emsdk activate latest +# source ./emsdk_env.sh diff --git a/docs/index.html b/docs/index.html index 461de375ca..69b121c1dd 100644 --- a/docs/index.html +++ b/docs/index.html @@ -196,11 +196,11 @@

-->

Latest Commit by h0lybyte : -

"Merge pull request #3775 from KBVE/beta +

"Merge pull request #3810 from KBVE/beta Preparing Release Branch"

-On:

-View this commit on +On:

+View this commit on GitHub .

Daily Post Image from Upsplash

January: 20

Notes

+

2025

+
    +
  • +

    President

    +

    10:00AM

    +

    The new president is taking office, well I guess not really new but it is what it is. +I am wondering how the markets will react tomorrow, since they are closed today.

    +
  • +
  • +

    GoDot

    +

    09:05PM

    +

    Updating the rust ffi into the godot wasm build, going to try the first build and see where it goes from there. +The reference issue that I was using is here 438. +The target will be using a -z flag , so we need to setup the nightly.

    +
    
    +rustup toolchain install nightly
    +rustup component add rust-src --toolchain nightly
    +rustup target add wasm32-unknown-emscripten --toolchain nightly
    +
    +
    +

    Next we need to add the emscripten to our WSL instance! +For this, I created a custom script that we can invoke with ./tools/scripts/public/emscripten/install_emsdk.sh. +We also want to make sure that the rustup has a wasm32 nightly added rustup target add wasm32-unknown-emscripten --toolchain nightly

    +
  • +

2024