fix(templ)

closes #6183
This commit is contained in:
Jacob Heider 2024-05-20 10:18:44 -04:00 committed by Jacob Heider
parent 51ab03e0a2
commit 236f8dede3

View file

@ -1,10 +1,9 @@
distributable:
url: https://github.com/a-h/templ/archive/refs/tags/v{{version}}.tar.gz
url: https://github.com/a-h/templ/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1
versions:
github: a-h/templ
strip: /^v/
build:
dependencies:
@ -16,9 +15,8 @@ build:
- -w
- -s
script:
- go build -v -ldflags="$LDFLAGS" -o templ ./cmd/templ
- mkdir -p "{{ prefix }}"/bin
- mv templ "{{ prefix }}"/bin
- echo -n {{ version }} >.version
- go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/templ ./cmd/templ
provides:
- bin/templ