31 lines
1.6 KiB
Bash
Executable File
31 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerate bridge_ui/rust_modules
|
|
set -euo pipefail
|
|
|
|
(
|
|
cd solana
|
|
mkdir -p ../bridge_ui/rust_modules/core
|
|
docker build -t localhost/certusone/wormhole-wasmpack:latest -f Dockerfile.wasm .
|
|
docker run --rm -it --workdir /usr/src/bridge/bridge/program \
|
|
-v $(pwd)/../bridge_ui/rust_modules/core:/usr/src/bridge/bridge/program/pkg \
|
|
-e EMITTER_ADDRESS=11111111111111111111111111111115 \
|
|
localhost/certusone/wormhole-wasmpack:latest \
|
|
/usr/local/cargo/bin/wasm-pack build --target bundler -- --features wasm
|
|
docker run --rm -it --workdir /usr/src/bridge/modules/token_bridge/program \
|
|
-v $(pwd)/../bridge_ui/rust_modules/token:/usr/src/bridge/modules/token_bridge/program/pkg \
|
|
-e EMITTER_ADDRESS=11111111111111111111111111111115 \
|
|
localhost/certusone/wormhole-wasmpack:latest \
|
|
/usr/local/cargo/bin/wasm-pack build --target bundler -- --features wasm
|
|
docker run --rm -it --workdir /usr/src/bridge/bridge/program \
|
|
-v $(pwd)/../clients/solana/pkg:/usr/src/bridge/bridge/program/pkg \
|
|
-e EMITTER_ADDRESS=11111111111111111111111111111115 \
|
|
localhost/certusone/wormhole-wasmpack:latest \
|
|
/usr/local/cargo/bin/wasm-pack build --target nodejs -- --features wasm
|
|
cp $(pwd)/../clients/solana/pkg/. $(pwd)/../clients/token_bridge/pkg/core -R
|
|
docker run --rm -it --workdir /usr/src/bridge/modules/token_bridge/program \
|
|
-v $(pwd)/../clients/token_bridge/pkg/token:/usr/src/bridge/modules/token_bridge/program/pkg \
|
|
-e EMITTER_ADDRESS=11111111111111111111111111111115 \
|
|
localhost/certusone/wormhole-wasmpack:latest \
|
|
/usr/local/cargo/bin/wasm-pack build --target nodejs -- --features wasm
|
|
)
|