pantry/projects/github.com/SwiftGen/SwiftGen/package.yml
Bruno Coelho 3be6d5839d
Fix github.com/SwiftGen/SwiftGen crash (#2652)
* Fix SwiftGen

* remove double download

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-07-24 10:40:03 -04:00

25 lines
578 B
YAML

distributable:
# FIXME: vendoring
#url: https://github.com/SwiftGen/SwiftGen/archive/refs/tags/{{version}}.tar.gz
#strip-components: 1
url: https://github.com/SwiftGen/SwiftGen/releases/download/{{version}}/swiftgen-{{version}}.zip
versions:
github: SwiftGen/SwiftGen/releases/tags
platforms:
- darwin
provides:
- bin/swiftgen
warnings:
- vendored
build:
working-directory: ${{prefix}}/bin
script: cp -a "$SRCROOT"/bin/swiftgen "$SRCROOT"/bin/SwiftGen_SwiftGenCLI.bundle .
test:
script: |
[[ "$(swiftgen --version)" = "SwiftGen v{{version}}"* ]]