1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-17 05:22:18 +00:00

Adds the path to the call

This commit is contained in:
MrFastwind
2021-04-26 16:51:38 +02:00
parent 757aab1747
commit 8f73e72f7a

View File

@@ -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
}