mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-22 14:19:19 -06:00
The cli now executes as an .exe on windows
This commit is contained in:
@@ -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}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user