You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eprintln!("{BOLD}{RED}error{RESET}: `{GREEN}{}{RESET}` option is only available if `{GREEN}--beta{RESET}` option is also used", flag);
88
+
exit(1);
87
89
}
88
90
89
91
// Project name used for the project directory name and productName in tauri.conf.json
@@ -279,13 +281,18 @@ where
279
281
}
280
282
};
281
283
284
+
// if --no-mobile is specified, ignore --mobile and force it to fale
285
+
if no_mobile.is_some(){
286
+
mobile = Some(false);
287
+
};
288
+
282
289
// Prompt for wether to bootstrap a mobile-friendly tauri project
283
290
// This should only be prompted if `--beta` is used on the command line and `--mobile` wasn't.
284
291
// TODO: remove this limitation once tauri@v2 is stable
285
292
let mobile = match mobile {
286
293
Some(mobile) => mobile,
287
294
None => {
288
-
if skip || !alpha{
295
+
if skip || !beta{
289
296
defaults.mobile.context("default mobile not set")?
290
297
}else{
291
298
Confirm::with_theme(&ColorfulTheme::default())
@@ -337,14 +344,14 @@ where
337
344
pkg_manager,
338
345
&project_name,
339
346
&package_name,
340
-
alpha,
347
+
beta,
341
348
mobile,
342
349
)?;
343
350
344
351
// Print post-render instructions
345
352
println!();
346
353
print!("Template created!");
347
-
let has_missing = print_missing_deps(pkg_manager, template,alpha);
354
+
let has_missing = print_missing_deps(pkg_manager, template,beta);
348
355
if has_missing {
349
356
println!("Make sure you have installed the prerequisites for your OS: {BLUE}{BOLD}https://tauri.app/v1/guides/getting-started/prerequisites{RESET}, then run:");
0 commit comments