diff --git a/bucket/v2rayn.json b/bucket/v2rayn.json index 111f9d2fd34525..52b5b3558f5a7c 100644 --- a/bucket/v2rayn.json +++ b/bucket/v2rayn.json @@ -24,6 +24,7 @@ }, "extract_dir": "v2rayN", "pre_install": [ + "if (!(Test-Path \"$dir\\bin\\Xray\")) { New-Item \"$dir\\bin\\Xray\" -ItemType Directory | Out-Null }", "foreach ($form in @('*.exe', '*.dat')) {", " foreach ($_ in Get-ChildItem \"$(appdir xray $global)\\current\" -File) {", " $name = $_.Name",