pantry/projects/github.com/krzysztofzablocki/Sourcery/package.yml

32 lines
640 B
YAML
Raw Normal View History

distributable:
url: https://github.com/krzysztofzablocki/Sourcery/releases/download/{{version}}/Sourcery-{{version}}.zip
versions:
github: krzysztofzablocki/Sourcery
platforms:
- darwin
provides:
- bin/sourcery
warnings:
- vendored
build:
working-directory: ${{prefix}}/bin
2024-01-16 21:18:10 +03:00
script:
- run: install "$SRCROOT"/bin/sourcery .
2024-01-23 22:15:54 +03:00
if: <2.1.4 || >=2.1.7
2024-01-16 21:18:10 +03:00
- run: install "$SRCROOT"/sourcery-{{version}}/bin/sourcery .
2024-01-23 22:15:54 +03:00
if: '>=2.1.4<2.1.7'
2024-01-16 21:18:10 +03:00
test:
- run: test "$(sourcery --version)" = "{{version}}"
if: <2.1.4
# 2.1.4 has the wrong version
- run: sourcery --version
2024-01-23 22:15:54 +03:00
if: 2.1.4
display-name: Sourcery