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

Commit 90b3f8d5 authored by 天乐 韩's avatar 天乐 韩

feat: Modify build.sh

--story=0
parent 5a3b0357
#!/bin/bash #!/bin/bash
DIR="/home/contract_docker_go/target/release/" contractName=$1
if [[ ! -n $contractName ]] ;then
if [ ! -d $DIR ]; then echo "contractName is empty. use as: ./build.sh contractName"
mkdir -p $DIR exit 1
fi fi
echo "please input zip file name (no suffix): " go build -ldflags="-s -w" -o $contractName
read zip_file
go build -ldflags="-s -w" -o $zip_file
7z a $zip_file $zip_file 7z a $contractName $contractName
mv $zip_file.7z $DIR rm -f $contractName
\ No newline at end of file \ 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