{"id":17090853,"url":"https://github.com/phimage/notarizeprocess","last_synced_at":"2025-03-23T16:12:59.481Z","repository":{"id":63920311,"uuid":"216478309","full_name":"phimage/NotarizeProcess","owner":"phimage","description":"Utility object to launch `xcrun altool` to get notarization information","archived":false,"fork":false,"pushed_at":"2019-11-05T05:06:17.000Z","size":29,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T22:15:59.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phimage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"phimage","patreon":"phimage","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.com/paypalme2/ericphimage"}},"created_at":"2019-10-21T04:35:25.000Z","updated_at":"2022-06-09T13:32:10.000Z","dependencies_parsed_at":"2023-01-14T14:00:29.595Z","dependency_job_id":null,"html_url":"https://github.com/phimage/NotarizeProcess","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phimage%2FNotarizeProcess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phimage%2FNotarizeProcess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phimage%2FNotarizeProcess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phimage%2FNotarizeProcess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phimage","download_url":"https://codeload.github.com/phimage/NotarizeProcess/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245128130,"owners_count":20565206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T13:56:53.938Z","updated_at":"2025-03-23T16:12:59.444Z","avatar_url":"https://github.com/phimage.png","language":"Swift","readme":"# NotarizeProcess\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://mit-license.org)\n[![Language](http://img.shields.io/badge/language-swift-orange.svg?style=flat)](https://developer.apple.com/swift)\n\nUtility object to launch `xcrun altool` to notarize app and get notarization information.\n\n## Notarize app\n\n```swift\nlet process = NotarizeProcess(username: username, password: password)\nlet upload = try process.notarize(app: appArchiveURL, bundleID: \"your.app.bundle.id\")\n```\n\n### or for .app\n\nAn archive will be created using ditto.\n\n```swift\nlet upload = try process.notarize(app: appURL, bundleID: \"\")\n```\nIf the `bundleID` argument is empty, we extract it from the .app Info.plist.\n \n## Get information about notarized app\n\n```swift\nlet info = try process.notarizationInfo(for: upload) // or upload.requestUUID\n```\n\nYou can also wait for the final result\n\n```swift\nlet info = try process.waitForNotarizationInfo(for: upload, timeout: 30 * 60)\n```\n\n## Get history\n\n```swift\nlet history = try process.notarizationHistory() // page: i\n```\n\n### and full information\n\n```swift\nfor item in history.items {\n    let info = try process.notarizationInfo(for: item)\n    print(\"\\(info)\")\n}\n```\n\n## Get audit log from information\n\n```swift\nlet info = try process.notarizationInfo(for: id)\nlet publisher = info.auditLogPublisher() // using Combine framework\n\n_ = publisher.sink(receiveCompletion: { completion in\n...\n}) { auditLog in\n...\n}\n```\n\n## Stapler\n\n### Staple\n\n```swift\ntry process.staple(app: appURL)\n```\n### Validate\n\n```swift\ntry process.validate(app: appURL)\n```\n\n## All in one\n\n```swift\ntry process.run(action: [.notarize, .wait, .staple] /*.all*/, on: appURL)\ntry process.run(action: .all, on: appURL)\ntry process.run(on: appURL)\n```\n\n## Dependencies\n\n![Dependencies graph](https://g.gravizo.com/svg?%20digraph%20DependenciesGraph%20{%20node%20[shape%20=%20box]%20%22https://github.com/phimage/NotarizeProcess%22[label=%22NotarizeProcess%22]%20%22https://github.com/phimage/NotarizationInfo%22[label=%22NotarizationInfo%22]%20%22https://github.com/phimage/NotarizeProcess%22%20-%3E%20%22https://github.com/phimage/NotarizationInfo%22%20%22https://github.com/phimage/NotarizationAuditLog%22[label=%22NotarizationAuditLog%22]%20%22https://github.com/phimage/NotarizeProcess%22%20-%3E%20%22https://github.com/phimage/NotarizationAuditLog%22%20})\n\n* [NotarizationInfo](https://github.com/phimage/NotarizationInfo)\n* [NotarizationAuditLog](https://github.com/phimage/NotarizationAuditLog)\n","funding_links":["https://github.com/sponsors/phimage","https://patreon.com/phimage","https://www.paypal.com/paypalme2/ericphimage"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphimage%2Fnotarizeprocess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphimage%2Fnotarizeprocess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphimage%2Fnotarizeprocess/lists"}