UNPKG

v3mt

Version:

A CLI toolkit for managing and deploying Victoria 3 mods, including sending mod files to the game, launching the game, and more.

15 lines (14 loc) 353 B
import { execSync } from 'child_process'; import { LinuxTools } from './types.js'; export function getLinuxTool() { for (const tool of Object.keys(LinuxTools)) { try { execSync(`which ${tool}`, { stdio: 'ignore' }); return tool; } catch { continue; } } return 'kdialog'; }