mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-14 12:41:21 +00:00
kotlin-native@1.6.21-349.1: Fix installation and autoupdate
fixes #3630
This commit is contained in:
parent
9c78d53e13
commit
7807ee2121
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "1.6.21",
|
"version": "1.6.21-349.1",
|
||||||
"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,11 +9,18 @@
|
|||||||
},
|
},
|
||||||
"architecture": {
|
"architecture": {
|
||||||
"64bit": {
|
"64bit": {
|
||||||
"url": "https://github.com/JetBrains/kotlin/releases/download/v1.6.21/kotlin-native-windows-x86_64-1.6.21.zip",
|
"url": "https://github.com/JetBrains/kotlin/releases/download/v1.6.21/kotlin-native-windows-x86_64-1.6.21-349.1.zip#/dl.zip_",
|
||||||
"hash": "ac520bf2f66197fec1ff6c666432cb908bf49e39b9266dd6979fa6e2c0294206",
|
"hash": "9327eb3317ce636c0652b419836c4fffa0654c2bded71aff70c90635d4be4ab7"
|
||||||
"extract_dir": "kotlin-native-windows-x86_64-1.6.21"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"pre_install": [
|
||||||
|
"# 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'",
|
||||||
|
"Expand-7zipArchive \"$dir\\dl.zip_\" \"$dir\" -Removal | Out-Null",
|
||||||
|
"$folder = Get-ChildItem \"$dir\\kotlin-native-windows-x86_64-*\" | Select -First 1 -ExpandProperty FullName",
|
||||||
|
"Move-Item \"$folder\\*\" \"$dir\\\"",
|
||||||
|
"Remove-Item \"$folder\" -Force -Recurse"
|
||||||
|
],
|
||||||
"bin": [
|
"bin": [
|
||||||
"bin\\cinterop.bat",
|
"bin\\cinterop.bat",
|
||||||
"bin\\jsinterop.bat",
|
"bin\\jsinterop.bat",
|
||||||
@ -25,19 +32,18 @@
|
|||||||
],
|
],
|
||||||
"env_add_path": "bin",
|
"env_add_path": "bin",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://kotlinlang.org/docs/releases.html",
|
"github": "https://github.com/JetBrains/kotlin",
|
||||||
"regex": ">([\\d.]+)</b"
|
"regex": "windows-x86_64-([\\d.]+-[\\d.]+)\\.zip"
|
||||||
},
|
},
|
||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
"architecture": {
|
"architecture": {
|
||||||
"64bit": {
|
"64bit": {
|
||||||
"url": "https://github.com/JetBrains/kotlin/releases/download/v$version/kotlin-native-windows-x86_64-$version.zip",
|
"url": "https://github.com/JetBrains/kotlin/releases/download/v$matchHead/kotlin-native-windows-x86_64-$version.zip#/dl.zip_"
|
||||||
"extract_dir": "kotlin-native-windows-x86_64-$version"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hash": {
|
"hash": {
|
||||||
"url": "https://github.com/JetBrains/kotlin/releases/tag/v$version",
|
"url": "https://api.github.com/repos/JetBrains/kotlin/releases/latest",
|
||||||
"regex": "(?sm)$basename</.*?>$sha256</"
|
"regex": "(?sm)kotlin-native-windows-x86_64[\\w.-]+\\s+\\|\\s+$sha256"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user