From b6a0ab82b5881fa756118b0585f7b641fb43dc33 Mon Sep 17 00:00:00 2001 From: tech189 Date: Sat, 8 Apr 2023 00:24:57 +0100 Subject: [PATCH] karate: Update to version 1.4.0 The ZIP release is no longer published - fixed to use the standalone .jar provided instead. The .bat file created is the same as the one that was provided in the ZIP release, I have just added `@echo off` --- bucket/karate.json | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/bucket/karate.json b/bucket/karate.json index 3a8cbf7018..0e3555efc2 100644 --- a/bucket/karate.json +++ b/bucket/karate.json @@ -1,17 +1,15 @@ { - "version": "1.3.1", + "version": "1.4.0", "description": "Test automation tool that combines API test-automation, mocks, performance-testing and UI automation into a single framework.", "homepage": "https://karatelabs.github.io/karate/", "license": "MIT", "suggest": { "Java": "java/openjdk" }, - "url": "https://github.com/karatelabs/karate/releases/download/v1.3.1/karate-1.3.1.zip", - "hash": "7a44bd20f12e3f9e720bb99be5976110a9b4fcef220c1edd64279938548b10c3", - "extract_dir": "karate-1.3.1", + "url": "https://github.com/karatelabs/karate/releases/download/v1.4.0/karate-1.4.0.jar#/karate.jar", + "hash": "2d31b14b976ca7e52b0f323e7a82494a875285edf82961d65b5420aa78496b03", "pre_install": [ - "$cont = Get-Content \"$dir\\karate.bat\"", - "$cont = 'cd /d \"%~dp0\"' + \"`r`n\" + $cont", + "$cont = \"@echo off`r`n\" + 'cd /d \"%~dp0\"' + \"`r`njava -cp karate.jar;. com.intuit.karate.Main %*\"", "Set-Content \"$dir\\karate.bat\" $cont -Encoding ascii" ], "bin": "karate.bat", @@ -20,7 +18,6 @@ "github": "https://github.com/karatelabs/karate" }, "autoupdate": { - "url": "https://github.com/karatelabs/karate/releases/download/v$version/karate-$version.zip", - "extract_dir": "karate-$version" + "url": "https://github.com/karatelabs/karate/releases/download/v$version/karate-$version.jar#/karate.jar" } }