add fallback to winInstall.
This commit is contained in:
committed by
GitHub
Unverified
parent
eb8f4402d4
commit
70415a13be
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user