Skip to content

Commit efad233

Browse files
authored
Merge pull request #105 from sarcasticadmin/sa/build-freebsd-bin
Feat: build freebsd bin
2 parents 77dc4f5 + 5235c03 commit efad233

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ dist:
4444
cp README.md LICENSE plugin.yaml build/diff
4545
GOOS=linux GOARCH=amd64 go build -o build/diff/bin/diff -ldflags="$(LDFLAGS)"
4646
tar -C build/ -zcvf $(CURDIR)/release/helm-diff-linux.tgz diff/
47+
GOOS=freebsd GOARCH=amd64 go build -o build/diff/bin/diff -ldflags="$(LDFLAGS)"
48+
tar -C build/ -zcvf $(CURDIR)/release/helm-diff-freebsd.tgz diff/
4749
GOOS=darwin GOARCH=amd64 go build -o build/diff/bin/diff -ldflags="$(LDFLAGS)"
4850
tar -C build/ -zcvf $(CURDIR)/release/helm-diff-macos.tgz diff/
4951
rm build/diff/bin/diff

install-binary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Shamelessly copied from https://github.com/technosophos/helm-template
44

@@ -52,7 +52,7 @@ initOS() {
5252
# verifySupported checks that the os/arch combination is supported for
5353
# binary builds.
5454
verifySupported() {
55-
local supported="linux-amd64\nmacos-amd64\nwindows-amd64"
55+
local supported="linux-amd64\nfreebsd-amd64\nmacos-amd64\nwindows-amd64"
5656
if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then
5757
echo "No prebuild binary for ${OS}-${ARCH}."
5858
exit 1

0 commit comments

Comments
 (0)