From 3be6d5839dbc7574436609ae0e66ca8be21a929d Mon Sep 17 00:00:00 2001 From: Bruno Coelho <4brunu@users.noreply.github.com> Date: Mon, 24 Jul 2023 15:40:03 +0100 Subject: [PATCH] Fix github.com/SwiftGen/SwiftGen crash (#2652) * Fix SwiftGen * remove double download --------- Co-authored-by: Jacob Heider --- projects/github.com/SwiftGen/SwiftGen/package.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/projects/github.com/SwiftGen/SwiftGen/package.yml b/projects/github.com/SwiftGen/SwiftGen/package.yml index 4d42c4ce..d90b5aa1 100644 --- a/projects/github.com/SwiftGen/SwiftGen/package.yml +++ b/projects/github.com/SwiftGen/SwiftGen/package.yml @@ -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: |