Skip to content

Commit

Permalink
refactor(cli.rs): signer and plugin subcommands, use new clap der…
Browse files Browse the repository at this point in the history
…ive syntax (#2928)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
JonasKruckenberg and lucasfernog committed Dec 9, 2021
1 parent 28aaec8 commit 1458ab3
Show file tree
Hide file tree
Showing 19 changed files with 1,416 additions and 1,904 deletions.
5 changes: 5 additions & 0 deletions .changes/cli.rs-refactor-signer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cli.rs": patch
---

The `generate` and `sign` commands are now available under a `signer` subcommand.
4 changes: 2 additions & 2 deletions core/tauri/src/updater/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,15 +293,15 @@
//! To generate your keys you need to use the Tauri cli.
//!
//! ```bash
//! tauri sign -g -w ~/.tauri/myapp.key
//! tauri signer sign -g -w ~/.tauri/myapp.key
//! ```
//!
//! You have multiple options available
//! ```bash
//! Tauri updates signer.
//!
//! USAGE:
//! tauri sign [FLAGS] [OPTIONS]
//! tauri signer sign [FLAGS] [OPTIONS]
//!
//! FLAGS:
//! --force Overwrite private key even if it exists on the specified path
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/guides/updater.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ The *Private key* (privkey) is used to sign your update and should NEVER be shar
To generate your keys you need to use the Tauri cli.

```bash
tauri sign -g -w ~/.tauri/myapp.key
tauri signer sign -g -w ~/.tauri/myapp.key
```

You have multiple options available
```bash
Tauri updates signer.
USAGE:
tauri sign [FLAGS] [OPTIONS]
tauri signer sign [FLAGS] [OPTIONS]
FLAGS:
--force Overwrite private key even if it exists on the specified path
-g, --generate Generate keypair to sign files
Expand Down
2 changes: 1 addition & 1 deletion tooling/bundler/src/bundle/windows/msi/wix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ pub fn build_wix_app_installer(
\pard\sa200\sl276\slmult1\f0\fs22\lang9 {}\par
}}
"#,
license_contents.replace("\n", "\\par ")
license_contents.replace('\n', "\\par ")
);
let rtf_output_path = settings
.project_out_directory()
Expand Down

0 comments on commit 1458ab3

Please sign in to comment.