mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-01 15:36:14 +03:00
feat(cli): expose iOS project path and app name as env vars (#7446)
This commit is contained in:
parent
753900dd6e
commit
c7dacca466
6
.changes/cli-ios-metadata-env-var.md
Normal file
6
.changes/cli-ios-metadata-env-var.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"tauri-cli": patch:feat
|
||||
"@tauri-apps/cli": patch:feat
|
||||
---
|
||||
|
||||
Expose the `TAURI_IOS_PROJECT_PATH` and `TAURI_IOS_APP_NAME` environment variables when using `ios` commands.
|
@ -30,7 +30,7 @@ use super::{
|
||||
};
|
||||
use crate::{helpers::config::Config as TauriConfig, Result};
|
||||
|
||||
use std::{process::exit, thread::sleep, time::Duration};
|
||||
use std::{env::set_var, process::exit, thread::sleep, time::Duration};
|
||||
|
||||
mod build;
|
||||
mod dev;
|
||||
@ -140,6 +140,9 @@ pub fn get_config(
|
||||
macos: Default::default(),
|
||||
};
|
||||
|
||||
set_var("TAURI_IOS_PROJECT_PATH", config.project_dir());
|
||||
set_var("TAURI_IOS_APP_NAME", config.app().name());
|
||||
|
||||
(config, metadata)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user