modify blackwhite rpc
-#!/usr/bin/env bash
+#!/bin/sh
strpwd=$(pwd)
strcmd=${strpwd##*dapp/}
strapp=${strcmd%/cmd*}
OUT_DIR="${1}/$strapp"
-OUT_TESTDIR="${1}/dapptest/$strapp"
-
-PARACLI="${OUT_DIR}/chain33-para-cli"
-PARANAME=para
-SRC_CLI=github.com/33cn/plugin/cli
+#FLAG=$2
-go build -v -o "${PARACLI}" -ldflags "-X ${SRC_CLI}/buildflags.ParaName=user.p.${PARANAME}. -X ${SRC_CLI}/buildflags.RPCAddr=http://localhost:8901" "${SRC_CLI}"
-# shellcheck disable=SC2086
+mkdir -p "${OUT_DIR}"
cp ./build/* "${OUT_DIR}"
+OUT_TESTDIR="${1}/dapptest/$strapp"
mkdir -p "${OUT_TESTDIR}"
-cp ./test/* "${OUT_TESTDIR}"
+cp ./build/test-rpc.sh "${OUT_TESTDIR}"
