mirror of https://github.com/tauri-apps/tauri
parent
06718b4569
commit
a944b9b05b
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
"tauri-cli": "patch:breaking"
|
||||
"@tauri-apps/cli": "patch:breaking"
|
||||
---
|
||||
|
||||
`tauri plugin init/new` will no longer generate a `.github` directory with workflows by default, instead use the new `--github-workflows` flag.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
"tauri-cli": "patch:feat"
|
||||
"@tauri-apps/cli": "patch:feat"
|
||||
---
|
||||
|
||||
Add `--github-workflows` flag for `tauri plugin new/init`.
|
||||
|
|
@ -56,6 +56,9 @@ pub struct Options {
|
|||
#[clap(long)]
|
||||
#[clap(default_value_t = PluginIosFramework::default())]
|
||||
pub(crate) ios_framework: PluginIosFramework,
|
||||
/// Generate github workflows
|
||||
#[clap(long)]
|
||||
pub(crate) github_workflows: bool,
|
||||
|
||||
/// Initializes a Tauri core plugin (internal usage)
|
||||
#[clap(long, hide(true))]
|
||||
|
@ -193,6 +196,7 @@ pub fn command(mut options: Options) -> Result<()> {
|
|||
return Ok(None);
|
||||
}
|
||||
}
|
||||
".github" if !options.github_workflows => return Ok(None),
|
||||
"android" => {
|
||||
if options.android || options.mobile {
|
||||
return generate_android_out_file(
|
||||
|
|
|
@ -37,6 +37,9 @@ pub struct Options {
|
|||
#[clap(long)]
|
||||
#[clap(default_value_t = PluginIosFramework::default())]
|
||||
pub(crate) ios_framework: PluginIosFramework,
|
||||
/// Generate github workflows
|
||||
#[clap(long)]
|
||||
github_workflows: bool,
|
||||
|
||||
/// Initializes a Tauri core plugin (internal usage)
|
||||
#[clap(long, hide(true))]
|
||||
|
@ -58,6 +61,7 @@ impl From<Options> for super::init::Options {
|
|||
ios: o.ios,
|
||||
mobile: o.mobile,
|
||||
ios_framework: o.ios_framework,
|
||||
github_workflows: o.github_workflows,
|
||||
|
||||
tauri: o.tauri,
|
||||
tauri_path: o.tauri_path,
|
||||
|
|
Loading…
Reference in New Issue