File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,19 @@ source "$SUBNET_EVM_PATH"/scripts/versions.sh
17
17
source " $SUBNET_EVM_PATH " /scripts/constants.sh
18
18
19
19
if [[ $# -eq 1 ]]; then
20
- PLUGIN_DIR =$1
20
+ BINARY_PATH =$1
21
21
elif [[ $# -eq 0 ]]; then
22
- PLUGIN_DIR =" ${DEFAULT_PLUGIN_DIR} "
22
+ BINARY_PATH =" ${SUBNET_EVM_PATH} /build/subnet-evm "
23
23
else
24
- echo " Invalid arguments to build subnet-evm. Requires zero (default plugin dir ) or one argument to specify the plugin dir ."
24
+ echo " Invalid arguments to build subnet-evm. Requires zero (default binary path ) or one argument to specify the binary path ."
25
25
exit 1
26
26
fi
27
27
28
- PLUGIN_PATH=" ${PLUGIN_DIR} /srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy"
29
-
30
- BINARY_PATH=" build/subnet-evm"
31
-
32
28
# Build Subnet EVM, which is run as a subprocess
33
29
echo " Building Subnet EVM @ GitCommit: $SUBNET_EVM_COMMIT at $BINARY_PATH "
34
- go build -ldflags " -X github.com/ava-labs/subnet-evm/plugin/evm.GitCommit=$SUBNET_EVM_COMMIT $STATIC_LD_FLAGS " -o " ./ $BINARY_PATH " " plugin/" * .go
30
+ go build -ldflags " -X github.com/ava-labs/subnet-evm/plugin/evm.GitCommit=$SUBNET_EVM_COMMIT $STATIC_LD_FLAGS " -o " $BINARY_PATH " " plugin/" * .go
35
31
32
+ PLUGIN_PATH=" ${DEFAULT_PLUGIN_DIR} /srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy"
36
33
echo " Symlinking ${BINARY_PATH} to ${PLUGIN_PATH} "
37
- mkdir -p " ${PLUGIN_DIR } "
38
- ln -sf " ${PWD} / ${ BINARY_PATH}" " ${PLUGIN_PATH} "
34
+ mkdir -p " ${DEFAULT_PLUGIN_DIR } "
35
+ ln -sf " ${BINARY_PATH} " " ${PLUGIN_PATH} "
You can’t perform that action at this time.
0 commit comments