The cli now executes as an .exe on windows

This commit is contained in:
Mathias
2022-08-10 01:06:22 +02:00
parent 59cf524e83
commit 85a774ddcf

View File

@@ -1,6 +1,6 @@
const {spawn} = require('child_process');
module.exports = async (serverId, binary_path = './bin/speedtest') => {
module.exports = async (serverId, binary_path = './bin/speedtest' + (process.platform === "win32" ? ".exe" : "")) => {
const args = ['--accept-license', '--accept-gdpr', '--format=jsonl'];
if (serverId) args.push(`--server-id=${serverId}`);