-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build script and don't auto load manic
- Loading branch information
Chris Greening
committed
Dec 9, 2024
1 parent
3a74789
commit 391fb70
Showing
2 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Exit on error | ||
set -e | ||
|
||
echo "Setting up Emscripten..." | ||
|
||
# Clone emsdk if it doesn't exist | ||
if [ ! -d "emsdk" ]; then | ||
git clone https://github.com/emscripten-core/emsdk.git | ||
fi | ||
|
||
# Navigate to emsdk directory | ||
cd emsdk | ||
|
||
# Update emsdk to latest version | ||
git pull | ||
|
||
# Install latest SDK tools | ||
./emsdk install latest | ||
|
||
# Activate the latest SDK | ||
./emsdk activate latest | ||
|
||
# Add environment variables to current shell | ||
source ./emsdk_env.sh | ||
|
||
cd .. | ||
|
||
make -f Makefile.ems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters