Fix cargo command not found after Rust installation
This commit is contained in:
4
bin/builders/BaseBuilder.ts
vendored
4
bin/builders/BaseBuilder.ts
vendored
@@ -4,7 +4,7 @@ import chalk from 'chalk';
|
||||
import prompts from 'prompts';
|
||||
|
||||
import { PakeAppOptions } from '@/types';
|
||||
import { checkRustInstalled, installRust } from '@/helpers/rust';
|
||||
import { checkRustInstalled, ensureRustEnv, installRust } from '@/helpers/rust';
|
||||
import { mergeConfig } from '@/helpers/merge';
|
||||
import tauriConfig from '@/helpers/tauriConfig';
|
||||
import { generateIdentifierSafeName } from '@/utils/name';
|
||||
@@ -77,6 +77,8 @@ export default abstract class BaseBuilder {
|
||||
logger.warn('✼ See more in https://tauri.app/start/prerequisites/.');
|
||||
}
|
||||
|
||||
ensureRustEnv();
|
||||
|
||||
if (!checkRustInstalled()) {
|
||||
const res = await prompts({
|
||||
type: 'confirm',
|
||||
|
||||
Reference in New Issue
Block a user