1 parent
3bcb76b21c
commit
1e48093e22
1 file changed
+8
-9
@@ -4370,10 +4370,10 @@ __wbg_init({{module_or_path: "/{}/{wasm_path}"}}).then((wasm) => {{
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BundleFormat::Ios => {
|
BundleFormat::MacOS | BundleFormat::Ios => {
|
||||||
if self.should_codesign {
|
if self.should_codesign {
|
||||||
ctx.status_codesigning();
|
ctx.status_codesigning();
|
||||||
self.codesign_ios().await?;
|
self.codesign_apple().await?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5254,23 +5254,22 @@ __wbg_init({{module_or_path: "/{}/{wasm_path}"}}).then((wasm) => {{
|
|||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn codesign_ios(&self) -> Result<()> {
|
pub async fn codesign_apple(&self) -> Result<()> {
|
||||||
// We don't want to drop the entitlements file, until the end of the block, so we hoist it to this temporary.
|
// We don't want to drop the entitlements file, until the end of the block, so we hoist it to this temporary.
|
||||||
let mut _saved_entitlements = None;
|
let mut _saved_entitlements = None;
|
||||||
|
|
||||||
let mut app_dev_name = self.apple_team_id.clone();
|
let mut app_dev_name = self.apple_team_id.clone();
|
||||||
if app_dev_name.is_none() {
|
if app_dev_name.is_none() {
|
||||||
app_dev_name =
|
app_dev_name = Some(Self::auto_provision_signing_name().await.context(
|
||||||
Some(Self::auto_provision_signing_name().await.context(
|
"Failed to automatically provision signing name for Apple codesigning.",
|
||||||
"Failed to automatically provision signing name for iOS codesigning.",
|
)?);
|
||||||
)?);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut entitlements_file = self.apple_entitlements.clone();
|
let mut entitlements_file = self.apple_entitlements.clone();
|
||||||
if entitlements_file.is_none() {
|
if entitlements_file.is_none() {
|
||||||
let entitlements_xml = Self::auto_provision_entitlements()
|
let entitlements_xml = Self::auto_provision_entitlements()
|
||||||
.await
|
.await
|
||||||
.context("Failed to auto-provision entitlements for iOS codesigning.")?;
|
.context("Failed to auto-provision entitlements for Apple codesigning.")?;
|
||||||
let entitlements_temp_file = tempfile::NamedTempFile::new()?;
|
let entitlements_temp_file = tempfile::NamedTempFile::new()?;
|
||||||
std::fs::write(entitlements_temp_file.path(), entitlements_xml)?;
|
std::fs::write(entitlements_temp_file.path(), entitlements_xml)?;
|
||||||
entitlements_file = Some(entitlements_temp_file.path().to_path_buf());
|
entitlements_file = Some(entitlements_temp_file.path().to_path_buf());
|
||||||
@@ -5285,7 +5284,7 @@ __wbg_init({{module_or_path: "/{}/{wasm_path}"}}).then((wasm) => {{
|
|||||||
)?;
|
)?;
|
||||||
|
|
||||||
tracing::debug!(
|
tracing::debug!(
|
||||||
"Codesigning iOS app with entitlements: {} and dev name: {}",
|
"Codesigning Apple app with entitlements: {} and dev name: {}",
|
||||||
entitlements_file.display(),
|
entitlements_file.display(),
|
||||||
app_dev_name
|
app_dev_name
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user