From e9e65ce96ab79c8db5b373b1f7d9fcf9dd2d7eba Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 12 Apr 2024 19:08:57 -0400 Subject: [PATCH] +logdy closes #5780 --- projects/logdy.dev/package.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 projects/logdy.dev/package.yml diff --git a/projects/logdy.dev/package.yml b/projects/logdy.dev/package.yml new file mode 100644 index 00000000..6582bb8c --- /dev/null +++ b/projects/logdy.dev/package.yml @@ -0,0 +1,29 @@ +distributable: + url: https://github.com/logdyhq/logdy-core/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: logdyhq/logdy-core + +build: + dependencies: + go.dev: ^1.21.4 + script: go build $ARGS -ldflags="$GO_LDFLAGS" ./ + env: + ARGS: + - -trimpath + - -o={{prefix}}/bin/logdy + GO_LDFLAGS: + - -s + - -w + - -X=main.Version={{version}} + linux: + GO_LDFLAGS: + - -buildmode=pie + +provides: + - bin/logdy + +test: + - logdy --version | grep {{version}} + - logdy --help