mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
github.com/axllent/mailpit (#3796)
* new file: projects/github.com/axllent/mailpit/package.yml * . * . * . * node<21 * oh...
This commit is contained in:
parent
b028ead93b
commit
7eec4f5a5b
30
projects/github.com/axllent/mailpit/package.yml
Normal file
30
projects/github.com/axllent/mailpit/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
distributable:
|
||||
url: https://github.com/axllent/mailpit/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: axllent/mailpit
|
||||
build:
|
||||
dependencies:
|
||||
nodejs.org: <21
|
||||
npmjs.com: '*'
|
||||
go.dev: '*'
|
||||
script:
|
||||
- npm install
|
||||
- npm run build
|
||||
- go build $GO_ARGS -ldflags="$LD_FLAGS"
|
||||
env:
|
||||
GO_ARGS:
|
||||
- -trimpath
|
||||
- -o={{prefix}}/bin/mailpit
|
||||
linux:
|
||||
GO_ARGS:
|
||||
- -buildmode=pie
|
||||
LD_FLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X github.com/axllent/mailpit/config.Version={{version}}
|
||||
provides:
|
||||
- bin/mailpit
|
||||
test:
|
||||
script:
|
||||
- mailpit version | grep {{version}}
|
Loading…
Reference in a new issue