wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz
sudo tar -xf emsdk-portable.tar.gz -C /opt/
source /opt/emsdk-portable/emsdk_env.sh
emsdk update
emsdk install latest
emsdk activate latest
# Fedora
sudo dnf install git ninja-build python3-pip
# Ubuntu
sudo apt install git ninja-build python3-pip
# Shared
sudo pip3 install meson
git clone https://github.com/prozum/meson-samples.git && cd meson-samples
meson --cross-file=emscripten.txt . build
ninja -C build
python -m SimpleHTTPServer &
xdg-open http://localhost:8000/build
# Select a sample folder
# Fedora
sudo dnf install flatpak
# Ubuntu
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak
# Shared
flatpak install --from https://git.gnome.org/browse/gnome-apps-nightly/plain/gnome-builder.flatpakref?h=stable
flatpak run org.gnome.Builder