haxe: fix extract_dir with a pre_install script (related #1754 and #1706)

This commit is contained in:
Richard Kuhnt 2017-10-09 15:49:51 +02:00
parent 6933b6f5a2
commit 7e8b955d4b

View File

@ -4,7 +4,6 @@
"license": "https://haxe.org/foundation/open-source.html", "license": "https://haxe.org/foundation/open-source.html",
"url": "https://github.com/HaxeFoundation/haxe/releases/download/3.4.4/haxe-3.4.4-win.zip", "url": "https://github.com/HaxeFoundation/haxe/releases/download/3.4.4/haxe-3.4.4-win.zip",
"hash": "b06fe00689490688c94e3152823786ce473c5b1112ca0b81be3e3cca4c9cc6e9", "hash": "b06fe00689490688c94e3152823786ce473c5b1112ca0b81be3e3cca4c9cc6e9",
"extract_dir": "haxe_20171008124705_683d0c5ae",
"bin": [ "bin": [
"haxe.exe", "haxe.exe",
"haxelib.exe" "haxelib.exe"
@ -13,6 +12,11 @@
"HAXEPATH": "$dir" "HAXEPATH": "$dir"
}, },
"depends": "neko", "depends": "neko",
"pre_install": "
if(Test-Path \"$dir\\haxe_*\") {
Move-Item -Force \"$dir\\haxe_*\\*\" \"$dir\"
}
",
"checkver": { "checkver": {
"github": "https://github.com/HaxeFoundation/haxe" "github": "https://github.com/HaxeFoundation/haxe"
}, },