mirror of
https://github.com/storytold/spark.git
synced 2026-10-21 08:06:45 +00:00
Initial commit
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if "rustup" tool is installed
|
||||
if ! command -v rustup &> /dev/null; then
|
||||
echo "Rust tool 'rustup' not found! Please install Rust to build."
|
||||
echo "Visit Rust installation page: https://www.rust-lang.org/tools/install"
|
||||
echo "- Likely install one-liner: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd $(dirname "$0")
|
||||
|
||||
# Make sure Rust wasm target is installed
|
||||
rustup target add wasm32-unknown-unknown
|
||||
|
||||
# Make sure wasm-pack is installed
|
||||
cargo install wasm-pack
|
||||
|
||||
cd forge-internal-rs
|
||||
|
||||
# Build the project
|
||||
wasm-pack build --target web
|
||||
Reference in New Issue
Block a user