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`
This commit is contained in:
tech189 2023-04-08 00:24:57 +01:00
parent 69a67344e7
commit b6a0ab82b5

View File

@ -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.", "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/", "homepage": "https://karatelabs.github.io/karate/",
"license": "MIT", "license": "MIT",
"suggest": { "suggest": {
"Java": "java/openjdk" "Java": "java/openjdk"
}, },
"url": "https://github.com/karatelabs/karate/releases/download/v1.3.1/karate-1.3.1.zip", "url": "https://github.com/karatelabs/karate/releases/download/v1.4.0/karate-1.4.0.jar#/karate.jar",
"hash": "7a44bd20f12e3f9e720bb99be5976110a9b4fcef220c1edd64279938548b10c3", "hash": "2d31b14b976ca7e52b0f323e7a82494a875285edf82961d65b5420aa78496b03",
"extract_dir": "karate-1.3.1",
"pre_install": [ "pre_install": [
"$cont = Get-Content \"$dir\\karate.bat\"", "$cont = \"@echo off`r`n\" + 'cd /d \"%~dp0\"' + \"`r`njava -cp karate.jar;. com.intuit.karate.Main %*\"",
"$cont = 'cd /d \"%~dp0\"' + \"`r`n\" + $cont",
"Set-Content \"$dir\\karate.bat\" $cont -Encoding ascii" "Set-Content \"$dir\\karate.bat\" $cont -Encoding ascii"
], ],
"bin": "karate.bat", "bin": "karate.bat",
@ -20,7 +18,6 @@
"github": "https://github.com/karatelabs/karate" "github": "https://github.com/karatelabs/karate"
}, },
"autoupdate": { "autoupdate": {
"url": "https://github.com/karatelabs/karate/releases/download/v$version/karate-$version.zip", "url": "https://github.com/karatelabs/karate/releases/download/v$version/karate-$version.jar#/karate.jar"
"extract_dir": "karate-$version"
} }
} }