import { $ } from "bun";

const WINDOWS = "win32";
const MAC = "darwin";
const LINUX = "linux";

const platform = process.platform;

if (platform === WINDOWS) {
  await $`powershell -ExecutionPolicy Bypass -File ./scripts/setup/windows.ps1`;
} else if (platform === MAC || platform === LINUX) {
  await $`chmod +x scripts/setup/linux.sh && ./scripts/setup/linux.sh`;
}
