github.com/kamiazya/dot-github@v1.3.0/scripts/make-release.sh (about) 1 #! /bin/bash 2 3 set -e 4 5 gox -verbose 6 mkdir -p release 7 mv dot-github_* release/ 8 cd release 9 for bin in `ls`; do 10 if [[ "$bin" == *windows* ]]; then 11 command="dot-github.exe" 12 else 13 command="dot-github" 14 fi 15 mv "$bin" "$command" 16 zip "${bin}.zip" "$command" 17 rm "$command" 18 done 19 cd -