Update setup/settings flow for runtime

This commit is contained in:
Will Chen
2025-04-12 23:53:38 -07:00
parent 3074634c88
commit 6a4f538879
7 changed files with 498 additions and 154 deletions

View File

@@ -488,4 +488,21 @@ export class IpcClient {
throw error;
}
}
// Check Node.js and npm status
public async getNodejsStatus(): Promise<{
nodeVersion: string | null;
npmVersion: string | null;
}> {
try {
const result = await this.ipcRenderer.invoke("nodejs-status");
return result as {
nodeVersion: string | null;
npmVersion: string | null;
};
} catch (error) {
showError(error);
throw error;
}
}
}