diff --git a/.changes/stylized-name.md b/.changes/stylized-name.md new file mode 100644 index 00000000..7caf8bc2 --- /dev/null +++ b/.changes/stylized-name.md @@ -0,0 +1,5 @@ +--- +"tauri-mobile": patch +--- + +Use stylized_name config for iOS product name. diff --git a/src/apple/config/mod.rs b/src/apple/config/mod.rs index f782c60b..37cd8d84 100644 --- a/src/apple/config/mod.rs +++ b/src/apple/config/mod.rs @@ -402,7 +402,7 @@ impl Config { let path = |tail: &str| self.export_dir().join(format!("{}.ipa", tail)); let old = path(&self.scheme()); // It seems like the format changed recently? - let new = path(self.app.name()); + let new = path(self.app.stylized_name()); std::iter::once(&old) .chain(std::iter::once(&new)) .find(|path| path.is_file()) @@ -412,7 +412,7 @@ impl Config { pub fn app_path(&self) -> PathBuf { self.export_dir() - .join(format!("Payload/{}.app", self.app.name())) + .join(format!("Payload/{}.app", self.app.stylized_name())) } pub fn scheme(&self) -> String { diff --git a/src/apple/simctl/run.rs b/src/apple/simctl/run.rs index 83e888d2..f6b6ea5b 100644 --- a/src/apple/simctl/run.rs +++ b/src/apple/simctl/run.rs @@ -32,7 +32,7 @@ pub fn run( .export_dir() .join(format!("{}_iOS.xcarchive", config.app().name())) .join("Products/Applications") - .join(format!("{}.app", config.app().name())); + .join(format!("{}.app", config.app().stylized_name())); let cmd = duct::cmd("xcrun", ["simctl", "install", id]) .vars(env.explicit_env()) .before_spawn(move |cmd| { diff --git a/templates/platforms/xcode/project.yml.hbs b/templates/platforms/xcode/project.yml.hbs index e89b4b46..6993210a 100644 --- a/templates/platforms/xcode/project.yml.hbs +++ b/templates/platforms/xcode/project.yml.hbs @@ -11,7 +11,7 @@ configs: settingGroups: app: base: - PRODUCT_NAME: {{app.name}} + PRODUCT_NAME: {{app.stylized-name}} PRODUCT_BUNDLE_IDENTIFIER: {{reverse-domain app.domain}}.{{app.name}} DEVELOPMENT_TEAM: {{apple.development-team}} targetTemplates: