21 lines
562 B
TypeScript
21 lines
562 B
TypeScript
import { BuildParameters } from '.';
|
|
import { SetupWindows, SetupMac } from './platform-setup/';
|
|
import ValidateWindows from './platform-validation/validate-windows';
|
|
|
|
class PlatformSetup {
|
|
static async setup(buildParameters: BuildParameters) {
|
|
switch (process.platform) {
|
|
case 'win32':
|
|
ValidateWindows.validate(buildParameters);
|
|
SetupWindows.setup(buildParameters);
|
|
break;
|
|
case 'darwin':
|
|
SetupMac.setup(buildParameters);
|
|
break;
|
|
//Add other baseOS's here
|
|
}
|
|
}
|
|
}
|
|
|
|
export default PlatformSetup;
|