File tree 2 files changed +22
-3
lines changed
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' tauri-cli ' : ' patch:enhance'
3
+ ---
4
+
5
+ Read the following env vars when using the ` tauri signer sign ` command to make it easier to use in CI.
6
+
7
+ - ` TAURI_PRIVATE_KEY `
8
+ - ` TAURI_PRIVATE_KEY_PASSWORD `
9
+ - ` TAURI_PRIVATE_KEY_PATH `
Original file line number Diff line number Diff line change @@ -17,13 +17,23 @@ use tauri_utils::display_path;
17
17
#[ clap( about = "Sign a file" ) ]
18
18
pub struct Options {
19
19
/// Load the private key from a string
20
- #[ clap( short = 'k' , long, conflicts_with( "private_key_path" ) ) ]
20
+ #[ clap(
21
+ short = 'k' ,
22
+ long,
23
+ conflicts_with( "private_key_path" ) ,
24
+ env = "TAURI_PRIVATE_KEY"
25
+ ) ]
21
26
private_key : Option < String > ,
22
27
/// Load the private key from a file
23
- #[ clap( short = 'f' , long, conflicts_with( "private_key" ) ) ]
28
+ #[ clap(
29
+ short = 'f' ,
30
+ long,
31
+ conflicts_with( "private_key" ) ,
32
+ env = "TAURI_PRIVATE_KEY_PATH"
33
+ ) ]
24
34
private_key_path : Option < PathBuf > ,
25
35
/// Set private key password when signing
26
- #[ clap( short, long) ]
36
+ #[ clap( short, long, env = "TAURI_PRIVATE_KEY_PASSWORD" ) ]
27
37
password : Option < String > ,
28
38
/// Sign the specified file
29
39
file : PathBuf ,
You can’t perform that action at this time.
0 commit comments