ddat interop with dat js cable interop with cabal js ddat's frontend = dat-thang cable fe = cable-thang dillo support based on cel's dillo-dat bootstrap node xplatform support Signed-off-by: divo <418@cryspace.space>
15 lines
691 B
Bash
15 lines
691 B
Bash
#!/bin/bash
|
|
set -eu
|
|
repo=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)
|
|
cold="$repo/local-data/test-runs/dpi-cold-parity-20261007"
|
|
output="$repo/local-data/test-runs/dillo"
|
|
mkdir -p "$cold/.dillo" "$cold/.config/dat-gpt"
|
|
mkdir -p "$output"
|
|
printf '12345 abcdef1234567890\n' > "$cold/.dillo/dpid_comm_keys"
|
|
printf '127.0.0.1:3282\n' > "$cold/.config/dat-gpt/bootstrap"
|
|
{
|
|
printf "<cmd='auth' msg='abcdef1234567890' '>\n"
|
|
printf "%s\n" "<cmd='open_url' url='dat://4a93f5824c7f4a39d485c84a4de0f563a33915954e7ee3f10ea3f6699f2a9ee8/' '>"
|
|
printf "%s\n" "<cmd='DpiBye' '>"
|
|
} | HOME="$cold" "$repo/build/linux/dat.dpi" > "$output/dpi-cold-site.response" 2> "$output/dpi-cold-site.error"
|