Skip to content

Commit c7dacca

Browse files
authored
feat(cli): expose iOS project path and app name as env vars (#7446)
1 parent 753900d commit c7dacca

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:feat
3+
"@tauri-apps/cli": patch:feat
4+
---
5+
6+
Expose the `TAURI_IOS_PROJECT_PATH` and `TAURI_IOS_APP_NAME` environment variables when using `ios` commands.

tooling/cli/src/mobile/ios.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use super::{
3030
};
3131
use crate::{helpers::config::Config as TauriConfig, Result};
3232

33-
use std::{process::exit, thread::sleep, time::Duration};
33+
use std::{env::set_var, process::exit, thread::sleep, time::Duration};
3434

3535
mod build;
3636
mod dev;
@@ -140,6 +140,9 @@ pub fn get_config(
140140
macos: Default::default(),
141141
};
142142

143+
set_var("TAURI_IOS_PROJECT_PATH", config.project_dir());
144+
set_var("TAURI_IOS_APP_NAME", config.app().name());
145+
143146
(config, metadata)
144147
}
145148

0 commit comments

Comments
 (0)