-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sh
executable file
·81 lines (61 loc) · 1.6 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/sh
echo "#"
echo "# Building Bundler (linux x64)..."
GOOS=linux GOARCH=amd64 go build \
-o bin/x64/bundler \
./bundler
echo "#"
echo "# Building Bundler (linux i386)..."
GOOS=linux GOARCH=386 go build \
-o bin/i386/bundler \
./bundler
echo "#"
echo "# Building Bundler (linux arm)..."
GOOS=linux GOARCH=arm go build \
-o bin/arm/bundler \
./bundler
echo "#"
echo "# Building Bundler (windows x64)..."
GOOS=windows GOARCH=amd64 go build \
-o bin/x64/bundler.exe \
./bundler
echo "#"
echo "# Building Bundler (windows i386)..."
GOOS=windows GOARCH=386 go build \
-o bin/i386/bundler.exe \
./bundler
echo "#"
echo "# Building Bundler (MAC OS X x64)..."
GOOS=darwin GOARCH=amd64 go build \
-o bin/x64/bundlerosx \
./bundler
echo "#"
echo "# Building SFX (windows x64)..."
GOOS=windows GOARCH=amd64 go generate ./base
GOOS=windows GOARCH=amd64 go build \
-o bin/x64/sfx.exe \
-ldflags "-s -w -H windowsgui" \
./base
echo "#"
echo "# Building SFX (windows i386)..."
GOOS=windows GOARCH=386 go generate ./base
GOOS=windows GOARCH=386 go build \
-o bin/i386/sfx.exe \
-ldflags "-s -w -H windowsgui" \
./base
echo "#"
echo "# Building SFX verbose (windows x64)..."
GOOS=windows GOARCH=amd64 go generate ./base
GOOS=windows GOARCH=amd64 go build \
-o bin/x64/sfxv.exe \
-ldflags "-s -w" \
-tags verbose \
./base
echo "#"
echo "# Building SFX verbose (windows i386)..."
GOOS=windows GOARCH=386 go generate ./base
GOOS=windows GOARCH=386 go build \
-o bin/i386/sfxv.exe \
-ldflags "-s -w" \
-tags verbose \
./base