Skip to content

Commit 22fae3b

Browse files
hilmarfmandelsoft
authored andcommitted
Windows binaries (#17)
* cross-compile also windows binaries * ignore eclipse project settings
1 parent 492c02d commit 22fae3b

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ vendor/github.com/onsi/
2121
vendor/github.com/pelletier/
2222
vendor/github.com/pointlander/
2323
vendor/github.com/spf13/
24+
/.project
25+
/.settings/

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build:
88
grammar:
99
go generate ./...
1010

11-
release: spiff_linux_amd64.zip spiff_darwin_amd64.zip spiff_linux_ppc64le.zip spiff_linux_arm64.zip
11+
release: spiff_linux_amd64.zip spiff_darwin_amd64.zip spiff_linux_ppc64le.zip spiff_linux_arm64.zip spiff_windows_amd64.zip spiff_windows_386.zip
1212

1313
linux:
1414
GOOS=linux GOARCH=amd64 go build -o spiff++/spiff++ .
@@ -40,6 +40,18 @@ spiff_linux_ppc64le.zip:
4040
(cd spiff++; zip spiff_linux_ppc64le.zip spiff++)
4141
rm spiff++/spiff++
4242

43+
spiff_windows_amd64.zip:
44+
GOOS=windows GOARCH=amd64 go build -o spiff++/spiff++.exe .
45+
rm -f spiff++/spiff_windows_amd64.zip
46+
(cd spiff++; zip spiff_windows_amd64.zip spiff++.exe)
47+
rm spiff++/spiff++.exe
48+
49+
spiff_windows_386.zip:
50+
GOOS=windows GOARCH=386 go build -o spiff++/spiff++_386.exe .
51+
rm -f spiff++/spiff_windows_386.zip
52+
(cd spiff++; zip spiff_windows_386.zip spiff++_386.exe)
53+
rm spiff++/spiff++_386.exe
54+
4355
.PHONY: vendor
4456
vendor:
4557
go mod vendor

0 commit comments

Comments
 (0)