10
10
["linux" , "amd64" ],
11
11
["linux" , "arm" ],
12
12
["linux" , "arm64" ],
13
- ["linux" , "mips" ],
13
+ ["linux" , "mips" , "softfloat" ],
14
+ ["linux" , "mips" , "hardfloat" ],
14
15
["linux" , "mipsle" ],
15
16
["linux" , "mips64" ],
16
17
["linux" , "mips64le" ],
@@ -34,17 +35,18 @@ def download_file():
34
35
35
36
def go_build_zip ():
36
37
subprocess .check_call ("go get -v github.com/shawn1m/overture/main" , shell = True )
37
- for o , a in GO_OS_ARCH_LIST :
38
- zip_name = "overture-" + o + "-" + a
38
+ for o , a , * p in GO_OS_ARCH_LIST :
39
+ zip_name = "overture-" + o + "-" + a + ( "-" + ( p [ 0 ] if p else "" ) if p else "" )
39
40
binary_name = zip_name + (".exe" if o == "windows" else "" )
40
41
version = subprocess .check_output ("git describe --tags" , shell = True ).decode ()
42
+ mipsflag = (" GOMIPS=" + (p [0 ] if p else "" ) if p else "" )
41
43
try :
42
- subprocess .check_call ("GOOS=" + o + " GOARCH=" + a + " CGO_ENABLED=0" + " go build -ldflags \" -s -w " +
44
+ subprocess .check_call ("GOOS=" + o + " GOARCH=" + a + mipsflag + " CGO_ENABLED=0" + " go build -ldflags \" -s -w " +
43
45
"-X main.version=" + version + "\" -o " + binary_name + " main/main.go" , shell = True )
44
46
subprocess .check_call ("zip " + zip_name + ".zip " + binary_name + " " + IP_NETWORK_SAMPLE_DICT ["name" ] + " " +
45
47
DOMAIN_SAMPLE_DICT ["name" ] + " hosts_sample config.json" , shell = True )
46
48
except subprocess .CalledProcessError :
47
- print (o + " " + a + " failed." )
49
+ print (o + " " + a + " " + ( p [ 0 ] if p else "" ) + " failed." )
48
50
49
51
50
52
def decode_domain_sample ():
0 commit comments