From 8f73e72f7a9eae024f7f7da681a9ee09bc1a4663 Mon Sep 17 00:00:00 2001 From: MrFastwind Date: Mon, 26 Apr 2021 16:51:38 +0200 Subject: [PATCH] Adds the path to the call --- destreamer.ps1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/destreamer.ps1 b/destreamer.ps1 index 5df7c8d..6a39aa6 100644 --- a/destreamer.ps1 +++ b/destreamer.ps1 @@ -1,8 +1,10 @@ $NodeVersion = Invoke-Expression "node.exe --version" +$JSScriptPath = "\build\src\destreamer.js" +$ScriptPath = "$PSScriptRoot$JSScriptPath" + if ($NodeVersion.StartsWith("v8.")) { - node.exe build\src\destreamer.js $args + & "node.exe $ScriptPath $args" } else { - node.exe --max-http-header-size 32768 build\src\destreamer.js $args -} - + node.exe --max-http-header-size 32768 $ScriptPath $args +} \ No newline at end of file