13 lines
398 B
Bash
Executable File
13 lines
398 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
target=wasm32-wasi
|
|
#target=wasm32-unknown-unknown
|
|
|
|
mkdir -p adapters
|
|
for d in $(ls crates | grep payment_adapter_); do
|
|
# echo $d
|
|
echo "cargo build --target ${target} -p ${d} --manifest-path ./crates/${d}/Cargo.toml"
|
|
cargo build --target-dir ./target --target ${target} -p ${d} --manifest-path ./crates/$d/Cargo.toml
|
|
cp ./target/${target}/debug/${d}.wasm ./adapters/
|
|
done
|