rm -fr *.exe
rm -fr *.run


## set up the sub folder module
#go mod init localshow   #not work in go1.10
this_project_real_path_in_go="$(go env GOPATH)/src/localshow"
echo "${this_project_real_path_in_go}"

mkdir -p "${this_project_real_path_in_go}"
cp -fr ./* "${this_project_real_path_in_go}/"


## compile
#CGO_ENABLED=0 go build -ldflags="-s -w" -o test.run
GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags="-s -w" -o localshow_xp.exe
GOOS=linux GOARCH=386 CGO_ENABLED=0 go build -ldflags="-s -w" -o localshow_linux_i32.run
