github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/build-linux-nowebsockets (about)

     1  echo "Deleting artifacts from previous builds"
     2  rm -f template_*.go
     3  rm -f tmpl_*.go
     4  rm -f gen_*.go
     5  rm -f tmpl_client/template_*
     6  rm -f tmpl_client/tmpl_*
     7  rm -f ./Gosora
     8  rm -f ./common/gen_extend.go
     9  
    10  echo "Building the router generator"
    11  go build -ldflags="-s -w" -o RouterGen "./router_gen"
    12  echo "Running the router generator"
    13  ./RouterGen
    14  
    15  echo "Building the hook stub generator"
    16  go build -ldflags="-s -w" -o HookStubGen "./cmd/hook_stub_gen"
    17  echo "Running the hook stub generator"
    18  ./HookStubGen
    19  
    20  echo "Building the hook generator"
    21  go build -tags hookgen -ldflags="-s -w" -o HookGen "./cmd/hook_gen"
    22  echo "Running the hook generator"
    23  ./HookGen
    24  
    25  echo "Generating the JSON handlers"
    26  easyjson -pkg common
    27  
    28  echo "Building the query generator"
    29  go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
    30  echo "Running the query generator"
    31  ./QueryGen
    32  
    33  echo "Building Gosora"
    34  go generate
    35  go build -ldflags="-s -w" -o Gosora -tags no_ws
    36  
    37  echo "Building the installer"
    38  go build -ldflags="-s -w" -o Installer "./install"