1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-21 15:32:16 +00:00
Files
destreamer-mirror/destreamer.ps1
2021-04-26 16:51:38 +02:00

10 lines
293 B
PowerShell

$NodeVersion = Invoke-Expression "node.exe --version"
$JSScriptPath = "\build\src\destreamer.js"
$ScriptPath = "$PSScriptRoot$JSScriptPath"
if ($NodeVersion.StartsWith("v8.")) {
& "node.exe $ScriptPath $args"
}
else {
node.exe --max-http-header-size 32768 $ScriptPath $args
}