Skip to content

Commit 134aaa5

Browse files
Add build.sh
1 parent c24604f commit 134aaa5

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
fyne-cross
2-
build.sh
31
paralload
4-
a
5-
b
2+
bin

build.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
echo "Making output directory..."
4+
mkdir bin
5+
6+
echo "Compiling Linux 64-bit..."
7+
CC="gcc" CXX="g++" GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -ldflags "-s -w" -o bin/paralload-linux_amd64 -v
8+
9+
echo "Compiling Linux 32-bit..."
10+
CC="gcc -m32" CXX="g++ -m32" GOOS=linux GOARCH=386 CGO_ENABLED=1 go build -ldflags "-s -w" -o bin/paralload-linux_386 -v
11+
12+
echo "Compiling Windows 64-bit..."
13+
CC="zig cc -target x86_64-windows-gnu" CXX="zig c++ -target x86_64-windows-gnu" GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -ldflags "-s -w" -o bin/paralload-windows_amd64.exe -v
14+
15+
echo "Compiling Windows 32-bit..."
16+
CC="zig cc -target i386-windows-gnu" CXX="zig c++ -target i386-windows-gnu" GOOS=windows GOARCH=386 CGO_ENABLED=1 go build -ldflags "-s -w" -o bin/paralload-windows_386.exe -v
17+

0 commit comments

Comments
 (0)