13 lines
398 B
Plaintext
13 lines
398 B
Plaintext
|
#!/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
|