From 7958164fbe66414ebe574159018dbb39710fd2a6 Mon Sep 17 00:00:00 2001 From: Pietro Pasotti Date: Thu, 13 Mar 2025 10:42:30 +0100 Subject: [PATCH] snap init --- .gitignore | 1 + snap/snapcraft.yaml | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/.gitignore b/.gitignore index 3a2f7da..70d5bc1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ dist/ .idea/ VERSION .tmp/ +*.snap diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..9195c58 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,29 @@ +name: grpcurl +base: core24 +version: '0.1' +summary: grpcurl is a command-line tool that lets you interact with gRPC servers. + +description: | + grpcurl is a command-line tool that lets you interact with gRPC servers. + It's basically curl for gRPC servers. + +grade: devel +confinement: devmode + +apps: + grpcurl: + command: grpcurl + plugs: + - network + +parts: + grpcurl: + plugin: go + build-snaps: [go/latest/stable] + source: https://github.com/fullstorydev/grpcurl + source-type: git + override-build: | + go build -o $CRAFT_PART_INSTALL/grpcurl ./cmd/grpcurl/grpcurl.go + + # adjust the permissions + chmod 0755 $CRAFT_PART_INSTALL/grpcurl