From 67d597af95f1dcf07e4e40d23a1afe3de241160b Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 17 Oct 2016 14:41:54 +0200 Subject: [PATCH] openbsd release --- .travis.yml | 2 ++ tools/build/env.go | 4 ++++ tools/release/release-ci.sh | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index aa5c5a71a..98446a28c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,8 @@ deploy: - "$GOPATH/bin/v2ray-linux-mips64.zip" - "$GOPATH/bin/v2ray-freebsd-64.zip" - "$GOPATH/bin/v2ray-freebsd-32.zip" + - "$GOPATH/bin/v2ray-openbsd-64.zip" + - "$GOPATH/bin/v2ray-openbsd-32.zip" - "$GOPATH/bin/metadata.txt" skip_cleanup: true on: diff --git a/tools/build/env.go b/tools/build/env.go index ac148a008..7e8db05d8 100644 --- a/tools/build/env.go +++ b/tools/build/env.go @@ -11,6 +11,7 @@ const ( MacOS = GoOS("darwin") Linux = GoOS("linux") FreeBSD = GoOS("freebsd") + OpenBSD = GoOS("openbsd") UnknownOS = GoOS("unknown") ) @@ -39,6 +40,9 @@ func parseOS(rawOS string) GoOS { if osStr == "freebsd" { return FreeBSD } + if osStr == "openbsd" { + return OpenBSD + } return UnknownOS } diff --git a/tools/release/release-ci.sh b/tools/release/release-ci.sh index 958fd9c58..17b3e48fb 100755 --- a/tools/release/release-ci.sh +++ b/tools/release/release-ci.sh @@ -11,4 +11,6 @@ $GOPATH/bin/build --os=linux --arch=arm --zip $GOPATH/bin/build --os=linux --arch=arm64 --zip $GOPATH/bin/build --os=linux --arch=mips64 --zip $GOPATH/bin/build --os=freebsd --arch=x86 --zip -$GOPATH/bin/build --os=freebsd --arch=amd64 --zip \ No newline at end of file +$GOPATH/bin/build --os=freebsd --arch=amd64 --zip +$GOPATH/bin/build --os=openbsd --arch=amd64 --zip +$GOPATH/bin/build --os=openbsd --arch=amd64 --zip \ No newline at end of file