Skip to content

Commit 1458ab3

Browse files
refactor(cli.rs): signer and plugin subcommands, use new clap derive syntax (#2928)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 28aaec8 commit 1458ab3

File tree

19 files changed

+1416
-1904
lines changed

19 files changed

+1416
-1904
lines changed

.changes/cli.rs-refactor-signer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cli.rs": patch
3+
---
4+
5+
The `generate` and `sign` commands are now available under a `signer` subcommand.

core/tauri/src/updater/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,15 @@
293293
//! To generate your keys you need to use the Tauri cli.
294294
//!
295295
//! ```bash
296-
//! tauri sign -g -w ~/.tauri/myapp.key
296+
//! tauri signer sign -g -w ~/.tauri/myapp.key
297297
//! ```
298298
//!
299299
//! You have multiple options available
300300
//! ```bash
301301
//! Tauri updates signer.
302302
//!
303303
//! USAGE:
304-
//! tauri sign [FLAGS] [OPTIONS]
304+
//! tauri signer sign [FLAGS] [OPTIONS]
305305
//!
306306
//! FLAGS:
307307
//! --force Overwrite private key even if it exists on the specified path

docs/usage/guides/updater.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,14 @@ The *Private key* (privkey) is used to sign your update and should NEVER be shar
280280
To generate your keys you need to use the Tauri cli.
281281

282282
```bash
283-
tauri sign -g -w ~/.tauri/myapp.key
283+
tauri signer sign -g -w ~/.tauri/myapp.key
284284
```
285285

286286
You have multiple options available
287287
```bash
288288
Tauri updates signer.
289289
USAGE:
290-
tauri sign [FLAGS] [OPTIONS]
290+
tauri signer sign [FLAGS] [OPTIONS]
291291
FLAGS:
292292
--force Overwrite private key even if it exists on the specified path
293293
-g, --generate Generate keypair to sign files

tooling/bundler/src/bundle/windows/msi/wix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ pub fn build_wix_app_installer(
431431
\pard\sa200\sl276\slmult1\f0\fs22\lang9 {}\par
432432
}}
433433
"#,
434-
license_contents.replace("\n", "\\par ")
434+
license_contents.replace('\n', "\\par ")
435435
);
436436
let rtf_output_path = settings
437437
.project_out_directory()

0 commit comments

Comments
 (0)