MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / checkDependencies

Function checkDependencies

daemon/src/service/dependencies.ts:5–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { initSteamCmd } from "../tools/steam_cmd";
4
5export 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}

Callers 1

app.tsFile · 0.90

Calls 1

initSteamCmdFunction · 0.90

Tested by

no test coverage detected