新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit f62c1c57 authored by tianle's avatar tianle

Merge branch 'v2.3.3_qc_script' into 'v2.3.3_qc' (merge request !45)

feat: Modify build.sh
feat: Modify build.sh

--story=0
parents e1b93771 90b3f8d5
#!/bin/bash
DIR="/home/contract_docker_go/target/release/"
if [ ! -d $DIR ]; then
mkdir -p $DIR
contractName=$1
if [[ ! -n $contractName ]] ;then
echo "contractName is empty. use as: ./build.sh contractName"
exit 1
fi
echo "please input zip file name (no suffix): "
read zip_file
go build -ldflags="-s -w" -o $zip_file
go build -ldflags="-s -w" -o $contractName
7z a $zip_file $zip_file
mv $zip_file.7z $DIR
\ No newline at end of file
7z a $contractName $contractName
rm -f $contractName
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment