Skip to content

Commit f9b974d

Browse files
committed
feat(cli): iOS signing for CI usage
1 parent f955f7b commit f9b974d

File tree

20 files changed

+1780
-381
lines changed

20 files changed

+1780
-381
lines changed

.changes/config.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,14 @@
188188
"path": "./core/tauri-utils",
189189
"manager": "rust"
190190
},
191+
"tauri-macos-sign": {
192+
"path": "./tooling/macos-sign",
193+
"manager": "rust"
194+
},
191195
"tauri-bundler": {
192196
"path": "./tooling/bundler",
193197
"manager": "rust",
194-
"dependencies": ["tauri-utils"]
198+
"dependencies": ["tauri-utils", "tauri-macos-sign"]
195199
},
196200
"tauri-runtime": {
197201
"path": "./core/tauri-runtime",
@@ -262,7 +266,7 @@
262266
"tauri-cli": {
263267
"path": "./tooling/cli",
264268
"manager": "rust",
265-
"dependencies": ["tauri-bundler", "tauri-utils"],
269+
"dependencies": ["tauri-bundler", "tauri-utils", "tauri-macos-sign"],
266270
"postversion": [
267271
"cargo check",
268272
"cargo build --manifest-path ../../core/tauri-config-schema/Cargo.toml"

.changes/ios-export-method.md

+6
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+
Added `--method` argument for `ios build` to select the export options' method.

.changes/ios-signing.md

+6
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+
Setup iOS signing by reading `IOS_CERTIFICATE`, `IOS_CERTIFICATE_PASSWORD` and `IOS_MOBILE_PROVISION` environment variables.

tooling/bundler/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ glob = "0.3"
5858
icns = { package = "tauri-icns", version = "0.1" }
5959
time = { version = "0.3", features = [ "formatting" ] }
6060
plist = "1"
61+
tauri-macos-sign = { version = "0.0.0", path = "../macos-sign" }
6162

6263
[target."cfg(any(target_os = \"macos\", target_os = \"windows\"))".dependencies]
6364
regex = "1"

tooling/bundler/src/bundle/macos/app.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
118118
remove_extra_attr(&app_bundle_path)?;
119119

120120
// sign application
121-
sign(sign_paths, identity, settings)?;
121+
let keychain = sign(sign_paths, identity, settings)?;
122122

123123
// notarization is required for distribution
124124
match notarize_auth() {
125125
Ok(auth) => {
126-
notarize(app_bundle_path.clone(), auth, settings)?;
126+
notarize(&keychain, app_bundle_path.clone(), &auth)?;
127127
}
128128
Err(e) => {
129129
if matches!(e, NotarizeAuthError::MissingTeamId) {

0 commit comments

Comments
 (0)