From 7e8b955d4b11c34e05533a0f4cd410cb6b7ebe1f Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Mon, 9 Oct 2017 15:49:51 +0200 Subject: [PATCH] haxe: fix extract_dir with a pre_install script (related #1754 and #1706) --- haxe.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/haxe.json b/haxe.json index 704e7e8fb5..d28bb0744b 100644 --- a/haxe.json +++ b/haxe.json @@ -4,7 +4,6 @@ "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", "hash": "b06fe00689490688c94e3152823786ce473c5b1112ca0b81be3e3cca4c9cc6e9", - "extract_dir": "haxe_20171008124705_683d0c5ae", "bin": [ "haxe.exe", "haxelib.exe" @@ -13,6 +12,11 @@ "HAXEPATH": "$dir" }, "depends": "neko", + "pre_install": " + if(Test-Path \"$dir\\haxe_*\") { + Move-Item -Force \"$dir\\haxe_*\\*\" \"$dir\" + } + ", "checkver": { "github": "https://github.com/HaxeFoundation/haxe" },