Fix github.com/SwiftGen/SwiftGen crash (#2652)

* Fix SwiftGen

* remove double download

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Bruno Coelho 2023-07-24 15:40:03 +01:00 committed by GitHub
parent 59fb64f849
commit 3be6d5839d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,8 @@
distributable:
url: https://github.com/SwiftGen/SwiftGen/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
# 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
@ -15,12 +17,8 @@ warnings:
- vendored
build:
working-directory: vendor
script: |
curl -Lfo swiftgen.zip "https://github.com/SwiftGen/SwiftGen/releases/download/{{version}}/swiftgen-{{version}}.zip"
unzip swiftgen.zip
mkdir -p "{{prefix}}/bin"
mv bin/swiftgen "{{prefix}}/bin"
working-directory: ${{prefix}}/bin
script: cp -a "$SRCROOT"/bin/swiftgen "$SRCROOT"/bin/SwiftGen_SwiftGenCLI.bundle .
test:
script: |