Browse Source

Add protoc to the release build

Signed-off-by: Erik Hollensbe <github@hollensbe.org>
master
Erik Hollensbe 3 months ago
parent
commit
c97a6b932e
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      box-release.rb

+ 8
- 0
box-release.rb View File

@ -3,6 +3,9 @@ from "debian:latest"
MKCERT_VERSION = "1.4.1"
MKCERT_URL = "https://github.com/FiloSottile/mkcert/releases/download/v#{MKCERT_VERSION}/mkcert-v#{MKCERT_VERSION}-linux-amd64"
PROTOC_VERSION = "3.11.4"
PROTOC_URL = "https://github.com/protocolbuffers/protobuf/releases/download/v#{PROTOC_VERSION}/protoc-#{PROTOC_VERSION}-linux-x86_64.zip"
def go_get(name)
run "go get -v -u #{name}"
end
@ -21,6 +24,11 @@ skip do
run "mv '#{path}' /tmp/mkcert"
end
download("protoc.zip", PROTOC_URL) do |path|
run "unzip #{path} -d /usr"
run "chmod -R 755 /usr/bin/protoc /usr/include/google"
end
copy "ldnsd-#{version}.tar.gz", "/tmp/"
inside "/tmp" do
run "tar vxzf ldnsd-#{version}.tar.gz"


Loading…
Cancel
Save