Latest
This commit is contained in:
parent
8d13abdcae
commit
bffbbe8e4d
1 changed files with 5 additions and 2 deletions
|
@ -962,8 +962,11 @@ async function ensurePackageManager(packageManager) {
|
||||||
const cargo = which.sync('cargo', { nothrow: true })
|
const cargo = which.sync('cargo', { nothrow: true })
|
||||||
if (!cargo) {
|
if (!cargo) {
|
||||||
if (osType === 'darwin') {
|
if (osType === 'darwin') {
|
||||||
|
const rustup = which.sync('rustup-init', { nothrow: true })
|
||||||
|
if (!rustup) {
|
||||||
await $`brew install rustup`
|
await $`brew install rustup`
|
||||||
await $`rustup-init`
|
}
|
||||||
|
await $`rustup-init -y`
|
||||||
} else if (osType === 'windows') {
|
} else if (osType === 'windows') {
|
||||||
} else {
|
} else {
|
||||||
await ensurePackage('cargo')
|
await ensurePackage('cargo')
|
||||||
|
|
Loading…
Reference in a new issue