ScoopInstaller_Main/bucket/luarocks.json
2024-05-31 20:25:35 +00:00

68 lines
2.5 KiB
JSON

{
"version": "3.11.1",
"description": "The package manager for Lua modules",
"homepage": "https://luarocks.org",
"license": "MIT",
"depends": "lua",
"architecture": {
"64bit": {
"url": "https://luarocks.github.io/luarocks/releases/luarocks-3.11.1-windows-64.zip",
"hash": "c71dba3d03e12305e9ccd022c621c8869aba3d124d9249e214aed5c16f3682a3",
"extract_dir": "luarocks-3.11.1-windows-64"
},
"32bit": {
"url": "https://luarocks.github.io/luarocks/releases/luarocks-3.11.1-windows-32.zip",
"hash": "44c7034d720a3767df964683722bd303311db9dabed11773dafbfa96add2eda7",
"extract_dir": "luarocks-3.11.1-windows-32"
}
},
"pre_install": [
"$file = 'config.lua'",
"$lua = (versiondir 'lua' 'current' $global) -replace \"\\\\\", '/'",
"$v1 = (Select-CurrentVersion 'lua' $global) -replace \"^(\\d.\\d).*\", '$1'",
"$v2 = $v1 -replace \"[.]\", ''",
"$rocks = \"$(versiondir 'luarocks' 'current' $global)\\rocks\" -replace \"\\\\\", \"/\"",
"if (!(Test-Path \"$persist_dir\\$file\")) {",
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
" $CONT = @(",
" \"rocks_trees = { `\"$rocks`\" }\"",
" \"lua_interpreter = `\"lua$v2.exe`\"\"",
" \"lua_version = `\"$v1`\"\"",
" 'variables = {'",
" \" LUA_BINDIR = `\"$lua`\",\"",
" \" LUA_DIR = `\"$lua`\"\"",
" '}'",
" )",
" Set-Content \"$dir\\$file\" ($CONT -join \"`r`n\") -Encoding Ascii",
"}"
],
"bin": [
"luarocks.exe",
"luarocks-admin.exe"
],
"env_add_path": "rocks\\bin",
"env_set": {
"LUAROCKS_CONFIG": "$dir\\config.lua"
},
"persist": [
"config.lua",
"rocks"
],
"checkver": {
"url": "https://luarocks.github.io/luarocks/releases/",
"regex": "luarocks-([\\d.]+)-windows"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://luarocks.github.io/luarocks/releases/luarocks-$version-windows-64.zip",
"extract_dir": "luarocks-$version-windows-64"
},
"32bit": {
"url": "https://luarocks.github.io/luarocks/releases/luarocks-$version-windows-32.zip",
"extract_dir": "luarocks-$version-windows-32"
}
}
}
}