-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
54 lines (42 loc) · 3.16 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env bash
set -e
go get -t ./...
GREEN='\033[0;32m'
NC='\033[0m'
printf "\n\n\n\n\n\n\n\n\n\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}= =${NC}\n"
printf "${GREEN}= =${NC}\n"
printf "${GREEN}= E N S U R E C L E A N A N D T E S T E D =${NC}\n"
printf "${GREEN}= =${NC}\n"
printf "${GREEN}= =${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
./hook.sh true
printf "\n\n\n\n\n\n\n\n\n\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}= =${NC}\n"
printf "${GREEN}= =${NC}\n"
printf "${GREEN}= B U I L D A P P =${NC}\n"
printf "${GREEN}= =${NC}\n"
printf "${GREEN}= =${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
printf "${GREEN}====================================================================================================${NC}\n"
cd recover
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
cd ..
cd task
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
cd ..
cd recover
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
cd ..
cd image
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
cd ..