mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-15 05:31:42 +03:00
refactor(android): rename BuildTask.kt command to android-studio-script (#4991)
This commit is contained in:
parent
9890486321
commit
9bb81bc328
@ -70,7 +70,7 @@ pub struct Cli {
|
||||
}
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
pub struct BuildOptions {
|
||||
pub struct AndroidStudioScriptOptions {
|
||||
/// Targets to build.
|
||||
#[clap(
|
||||
short,
|
||||
@ -127,14 +127,14 @@ enum Commands {
|
||||
Open,
|
||||
Dev(DevOptions),
|
||||
#[clap(hide(true))]
|
||||
Build(BuildOptions),
|
||||
AndroidStudioScript(AndroidStudioScriptOptions),
|
||||
}
|
||||
|
||||
pub fn command(cli: Cli) -> Result<()> {
|
||||
match cli.command {
|
||||
Commands::Init(options) => init_command(options, MobileTarget::Android)?,
|
||||
Commands::Open => open()?,
|
||||
Commands::Build(options) => build(options)?,
|
||||
Commands::AndroidStudioScript(options) => android_studio_script(options)?,
|
||||
Commands::Dev(options) => dev(options)?,
|
||||
}
|
||||
|
||||
@ -294,7 +294,7 @@ fn run(options: MobileOptions) -> Result<DevChild, Error> {
|
||||
.map(|c| DevChild(Some(c)))
|
||||
}
|
||||
|
||||
fn build(options: BuildOptions) -> Result<()> {
|
||||
fn android_studio_script(options: AndroidStudioScriptOptions) -> Result<()> {
|
||||
let profile = if options.release {
|
||||
Profile::Release
|
||||
} else {
|
||||
|
@ -81,7 +81,7 @@ impl Target {
|
||||
|
||||
fn ide_build_script_name(&self) -> &'static str {
|
||||
match self {
|
||||
Self::Android => "build",
|
||||
Self::Android => "android-studio-script",
|
||||
#[cfg(target_os = "macos")]
|
||||
Self::Ios => "xcode-script",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user