()
| 3 | import { initSteamCmd } from "../tools/steam_cmd"; |
| 4 | |
| 5 | export function checkDependencies() { |
| 6 | initSteamCmd(); |
| 7 | |
| 8 | const dependencies = [GOLANG_ZIP_PATH]; |
| 9 | dependencies.forEach((path) => { |
| 10 | if (!fs.existsSync(path)) { |
| 11 | throw new Error(`MCSManager requires additional dependencies to run. Please download the files suitable for your system architecture from the following locations:\n1. https://github.com/MCSManager/PTY/releases\n2. https://github.com/MCSManager/Zip-Tools/releases`); |
| 12 | } |
| 13 | }); |
| 14 | } |