add fallback to winInstall.

This commit is contained in:
RedbeanW
2025-10-02 01:24:08 +08:00
committed by GitHub
Unverified
parent eb8f4402d4
commit 70415a13be
5 changed files with 5418 additions and 5520 deletions
+1 -2
View File
@@ -7,8 +7,7 @@ import { unixInstall } from './unix-install';
export async function installXmake(): Promise<void> {
const version = await selectVersion();
if (os.platform() === 'win32' || os.platform() === 'cygwin') {
const latest = await selectVersion('latest');
await winInstall(version, latest);
await winInstall(version);
} else {
await unixInstall(version);
}