kotlin-native: Update to version 2.0.20 & Fix autoupdate (#6153)

* Update kotlin-native to version 2.0.20

* Fix kotlin-native hash extraction and cleanup pre_install script
This commit is contained in:
Jonas Broeckmann 2024-09-25 13:58:37 +02:00 committed by GitHub
parent bf1935b90f
commit 72accb451b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
{ {
"version": "1.9.25", "version": "2.0.20",
"description": "An LLVM backend for the Kotlin compiler, runtime implementation, and native code generation facility using the LLVM toolchain for native binaries runnable without a virtual machine.", "description": "An LLVM backend for the Kotlin compiler, runtime implementation, and native code generation facility using the LLVM toolchain for native binaries runnable without a virtual machine.",
"homepage": "https://kotlinlang.org", "homepage": "https://kotlinlang.org",
"license": "Apache-2.0", "license": "Apache-2.0",
@ -9,17 +9,16 @@
}, },
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://github.com/JetBrains/kotlin/releases/download/v1.9.25/kotlin-native-windows-x86_64-1.9.25.zip#/dl.zip_", "url": "https://github.com/JetBrains/kotlin/releases/download/v2.0.20/kotlin-native-prebuilt-windows-x86_64-2.0.20.zip",
"hash": "edad2ad9bfff21a63c27e8429fb5067490eb5955ff6b8075aaba2218290c3964" "hash": "2bfb50f447bb337b9f4f5859f2b47749c7ec4053f16bc8a134f1de3d4fad1791"
} }
}, },
"pre_install": [ "pre_install": [
"# Manually extract because archive name and directory name sometimes does not match.", "# Manually extract because archive name and directory name sometimes does not match.",
"# e.g. archive is named 'kotlin-native-windows-x86_64-1.6.21-349.1', but contains folder 'kotlin-native-windows-x86_64-1.6.21-349'", "# e.g. archive is named 'kotlin-native-prebuilt-windows-x86_64-$version', but contains folder 'kotlin-native-prebuilt-windows-x86_64-$version'",
"Expand-7zipArchive \"$dir\\dl.zip_\" \"$dir\" -Removal | Out-Null", "$subdir = \"$dir\\kotlin-native-prebuilt-windows-x86_64-$version\"",
"$folder = Get-ChildItem \"$dir\\kotlin-native-windows-x86_64-*\" | Select -First 1 -ExpandProperty FullName", "Move-Item \"$subdir\\*\" \"$dir\\\"",
"Move-Item \"$folder\\*\" \"$dir\\\"", "Remove-Item $subdir -Force -Recurse"
"Remove-Item \"$folder\" -Force -Recurse"
], ],
"bin": [ "bin": [
"bin\\cinterop.bat", "bin\\cinterop.bat",
@ -32,18 +31,17 @@
], ],
"env_add_path": "bin", "env_add_path": "bin",
"checkver": { "checkver": {
"github": "https://github.com/JetBrains/kotlin", "url": "https://api.github.com/repositories/3432266/releases/latest",
"regex": "windows-x86_64-([\\d.\\-]+)\\.zip" "regex": "windows-x86_64-([\\w.\\-]+)\\.zip"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://github.com/JetBrains/kotlin/releases/download/v$matchHead/kotlin-native-windows-x86_64-$version.zip#/dl.zip_" "url": "https://github.com/JetBrains/kotlin/releases/download/v$matchHead/kotlin-native-prebuilt-windows-x86_64-$version.zip"
} }
}, },
"hash": { "hash": {
"url": "https://api.github.com/repositories/3432266/releases/latest", "url": "$url.sha256"
"regex": "(?sm)kotlin-native-windows-x86_64[\\w.-]+\\s+\\|\\s+$sha256"
} }
} }
} }