├── .appcast.xml ├── .gitignore ├── LICENSE ├── Notarize.sketchplugin └── Contents │ ├── Resources │ ├── Notarize.framework │ │ ├── Notarize │ │ ├── Resources │ │ │ ├── Assets.car │ │ │ ├── Info.plist │ │ │ └── NotarizeStoryboard.storyboardc │ │ │ │ ├── Info.plist │ │ │ │ ├── LEA-Bw-KL9-view-T0A-jC-mha.nib │ │ │ │ ├── LRD-BE-sU8-view-MnG-EF-2Ml.nib │ │ │ │ ├── NSTabViewController-7mx-0c-eeE.nib │ │ │ │ ├── WVB-Eo-8JF-view-IUF-bZ-6DL.nib │ │ │ │ ├── mainWindow.nib │ │ │ │ └── oWl-eS-Bzq-view-jVA-rn-exf.nib │ │ └── _CodeSignature │ │ │ └── CodeResources │ └── icon.png │ └── Sketch │ ├── manifest.json │ └── script.js ├── README.md └── img ├── create-certificate.png ├── history.png ├── integrity-error.png ├── notarizing.png └── setup-credentials.png /.appcast.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Notarize: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/Notarize.framework/Notarize -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/Assets.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/Assets.car -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 20B29 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Notarize 11 | CFBundleIdentifier 12 | com.abynim.Notarize 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Notarize 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSupportedPlatforms 22 | 23 | MacOSX 24 | 25 | CFBundleVersion 26 | 207 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 12B45b 31 | DTPlatformName 32 | macosx 33 | DTPlatformVersion 34 | 11.0 35 | DTSDKBuild 36 | 20A2408 37 | DTSDKName 38 | macosx11.0 39 | DTXcode 40 | 1220 41 | DTXcodeBuild 42 | 12B45b 43 | LSMinimumSystemVersion 44 | 10.14 45 | NSHumanReadableCopyright 46 | Copyright © 2019 Aby Nimbalkar. All rights reserved. 47 | 48 | 49 | -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/Info.plist -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/LEA-Bw-KL9-view-T0A-jC-mha.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/LEA-Bw-KL9-view-T0A-jC-mha.nib -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/LRD-BE-sU8-view-MnG-EF-2Ml.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/LRD-BE-sU8-view-MnG-EF-2Ml.nib -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/NSTabViewController-7mx-0c-eeE.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/NSTabViewController-7mx-0c-eeE.nib -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/WVB-Eo-8JF-view-IUF-bZ-6DL.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/WVB-Eo-8JF-view-IUF-bZ-6DL.nib -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/mainWindow.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/mainWindow.nib -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/oWl-eS-Bzq-view-jVA-rn-exf.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/Notarize.framework/Resources/NotarizeStoryboard.storyboardc/oWl-eS-Bzq-view-jVA-rn-exf.nib -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/Notarize.framework/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Assets.car 8 | 9 | db2Fvlp/F+M9+ppuWWBr8yHiPh4= 10 | 11 | Resources/Info.plist 12 | 13 | lbonAeX0r7NYJX0YzH/upU+gDoQ= 14 | 15 | Resources/NotarizeStoryboard.storyboardc/Info.plist 16 | 17 | mVhqCr8cF+IwWO3NYOzN+uMed9A= 18 | 19 | Resources/NotarizeStoryboard.storyboardc/LEA-Bw-KL9-view-T0A-jC-mha.nib 20 | 21 | MJScCsqEad+25GffICrX/EWZUu4= 22 | 23 | Resources/NotarizeStoryboard.storyboardc/LRD-BE-sU8-view-MnG-EF-2Ml.nib 24 | 25 | oPWf0vWLpycHo4PofeB13FyDGr0= 26 | 27 | Resources/NotarizeStoryboard.storyboardc/NSTabViewController-7mx-0c-eeE.nib 28 | 29 | J9/8Q3oHpboRKu5mXmmieB5bbxE= 30 | 31 | Resources/NotarizeStoryboard.storyboardc/WVB-Eo-8JF-view-IUF-bZ-6DL.nib 32 | 33 | bwvYVqya6IKULZx3eYkcreor9kg= 34 | 35 | Resources/NotarizeStoryboard.storyboardc/mainWindow.nib 36 | 37 | m3AfbiOyN5nc+J0/b9ccJ/vEeOs= 38 | 39 | Resources/NotarizeStoryboard.storyboardc/oWl-eS-Bzq-view-jVA-rn-exf.nib 40 | 41 | lH6gTFsRxRoMWGwW/avYQ0ERs8I= 42 | 43 | 44 | files2 45 | 46 | Resources/Assets.car 47 | 48 | hash2 49 | 50 | 5xmtiYdsimsFAfiQ1XP4M92d8tHm9ouxzgnrIhqoEWM= 51 | 52 | 53 | Resources/Info.plist 54 | 55 | hash2 56 | 57 | vZpm8pPPTJ+fpymLmPqJ3/1ksiWIHAl+ItK+Olwfdxg= 58 | 59 | 60 | Resources/NotarizeStoryboard.storyboardc/Info.plist 61 | 62 | hash2 63 | 64 | K2cNKZyjWj5zwrzreBbED7hKQKWAOLvwgf1JUHB8eoo= 65 | 66 | 67 | Resources/NotarizeStoryboard.storyboardc/LEA-Bw-KL9-view-T0A-jC-mha.nib 68 | 69 | hash2 70 | 71 | OpGGGzJ5EcHFs+WIg+Mqe14zBCrKKKJwhIDhD5qZTFs= 72 | 73 | 74 | Resources/NotarizeStoryboard.storyboardc/LRD-BE-sU8-view-MnG-EF-2Ml.nib 75 | 76 | hash2 77 | 78 | BOwDYMQL7pyPlugGgs1gk9DWRyKb5Y1CbsN4CWX3Rnk= 79 | 80 | 81 | Resources/NotarizeStoryboard.storyboardc/NSTabViewController-7mx-0c-eeE.nib 82 | 83 | hash2 84 | 85 | U05qiQ9DYT4CpquW07ZW1Xj/tI0RNxD5tcyLyogEtPI= 86 | 87 | 88 | Resources/NotarizeStoryboard.storyboardc/WVB-Eo-8JF-view-IUF-bZ-6DL.nib 89 | 90 | hash2 91 | 92 | apg43WYxUbGwYXV0n7JN2Ol3co/1w/gfKFeihacULP4= 93 | 94 | 95 | Resources/NotarizeStoryboard.storyboardc/mainWindow.nib 96 | 97 | hash2 98 | 99 | +3uFqr9XaJZ0cVN/Y+prEFqaBVxR9WIioTqFJ+FM5KE= 100 | 101 | 102 | Resources/NotarizeStoryboard.storyboardc/oWl-eS-Bzq-view-jVA-rn-exf.nib 103 | 104 | hash2 105 | 106 | 549G0VPzvTaGUkbRDBZsJLZxpva68WkD/D3hlbCZdn8= 107 | 108 | 109 | 110 | rules 111 | 112 | ^Resources/ 113 | 114 | ^Resources/.*\.lproj/ 115 | 116 | optional 117 | 118 | weight 119 | 1000 120 | 121 | ^Resources/.*\.lproj/locversion.plist$ 122 | 123 | omit 124 | 125 | weight 126 | 1100 127 | 128 | ^Resources/Base\.lproj/ 129 | 130 | weight 131 | 1010 132 | 133 | ^version.plist$ 134 | 135 | 136 | rules2 137 | 138 | .*\.dSYM($|/) 139 | 140 | weight 141 | 11 142 | 143 | ^(.*/)?\.DS_Store$ 144 | 145 | omit 146 | 147 | weight 148 | 2000 149 | 150 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 151 | 152 | nested 153 | 154 | weight 155 | 10 156 | 157 | ^.* 158 | 159 | ^Info\.plist$ 160 | 161 | omit 162 | 163 | weight 164 | 20 165 | 166 | ^PkgInfo$ 167 | 168 | omit 169 | 170 | weight 171 | 20 172 | 173 | ^Resources/ 174 | 175 | weight 176 | 20 177 | 178 | ^Resources/.*\.lproj/ 179 | 180 | optional 181 | 182 | weight 183 | 1000 184 | 185 | ^Resources/.*\.lproj/locversion.plist$ 186 | 187 | omit 188 | 189 | weight 190 | 1100 191 | 192 | ^Resources/Base\.lproj/ 193 | 194 | weight 195 | 1010 196 | 197 | ^[^/]+$ 198 | 199 | nested 200 | 201 | weight 202 | 10 203 | 204 | ^embedded\.provisionprofile$ 205 | 206 | weight 207 | 20 208 | 209 | ^version\.plist$ 210 | 211 | weight 212 | 20 213 | 214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Resources/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/Notarize.sketchplugin/Contents/Resources/icon.png -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Sketch/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands" : [ 3 | { 4 | "script" : "script.js", 5 | "handler" : "go", 6 | "shortcut" : "", 7 | "scope": "application", 8 | "name" : "Notarizing Assistant", 9 | "identifier" : "selectPlugin" 10 | } 11 | ], 12 | "menu": { 13 | "title" : "Notarizing Assistant", 14 | "isRoot" : true, 15 | "items": [ 16 | "selectPlugin" 17 | ] 18 | }, 19 | "identifier" : "com.abynim.Notarize", 20 | "version" : "0.4", 21 | "icon" : "icon.png", 22 | "description" : "Notarize sketch plugins that contain native frameworks or bundles", 23 | "author" : "Aby Nimbalkar", 24 | "name" : "Notarizing Assistant", 25 | "disableCocoaScriptPreprocessor" : true, 26 | "homepage" : "https://github.com/abynim/sketch-notarizing-assistant", 27 | "appcast" : "https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/master/.appcast.xml" 28 | } 29 | -------------------------------------------------------------------------------- /Notarize.sketchplugin/Contents/Sketch/script.js: -------------------------------------------------------------------------------- 1 | var go = function(context) { 2 | try { Notarize.go(context); } 3 | catch(e) { 4 | if(Mocha.sharedRuntime().loadFrameworkWithName_inDirectory('Notarize', NSBundle.bundleWithURL(context.plugin.url()).resourceURL().path())) { 5 | Notarize.go(context); 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Notarizing Assistant for [Sketch](https://sketch.com) 2 | A utility plugin for notarizing other plugins that contain frameworks or bundles. 3 | 4 | Starting from macOS 10.15 Catalina, Apple requires all frameworks and app bundles to be code signed and notarized. If your Sketch plugin includes a framework or bundle, it needs to be notarized. Without notarizing, your plugins will fail to load and users will see a message saying Apple cannot verify its identify. 5 | 6 | ![Integrity Error Message](img/integrity-error.png?raw=true) 7 | 8 | 9 | Notarizing Assistant helps you notarize your plugins before releasing. 10 | 11 | 12 | ## Requirements 13 | 14 | #### A paid Apple Developer account 15 | Enrolling in the Apple Developer Program costs $99/year. 16 | You must also have two-factor authentication enabled. 17 | Create a new account, or upgrade to a paid plan: [https://developer.apple.com](https://developer.apple.com) 18 | 19 | #### An app-specific password 20 | Since two-factor authentication is required for your account, you will also need to create an app-specific password to use when submitting your plugin for notarizing. 21 | 22 | Follow the instructions here to create one: [https://support.apple.com/en-us/HT204397](https://support.apple.com/en-us/HT204397) 23 | 24 | #### A Developer ID Application Certificate saved in your local Keychain 25 | If you don’t have one saved in your local Keychain you can create a new certificate or download an existing certificate. 26 | 27 | ![Create Certificate](img/create-certificate.png?raw=true) 28 | 29 | 1. Go to Xcode → Preferences → Accounts 30 | 2. Select your Developer Account (or sign in if you don’t see it) and select “Manage Certificates” 31 | 3. Click the `+` button and select `Developer ID Application` to create a new certificate 32 | 33 | 34 | ## Setup your credentials 35 | 36 | You will need to notarize your plugin every time you make a change to the framework. Notarizing Assistant helps you securely save your app-specific password to your local Keychain so you can access it again in the future. 37 | 38 | To save your credentials, launch the plugin by going to `Plugins → Notarizing Assistant` 39 | 40 | ![Setup Credentials](img/setup-credentials.png?raw=true) 41 | 42 | Enter your Certificate Name, which is usually the value displayed in the `Creator` column in Xcode’s Manage Certificates window (see above). 43 | 44 | Enter the appropriate Team ID if your account is associated with multiple teams. If not, just leave this blank. 45 | 46 | Enter the email address associated with your Apple ID. 47 | 48 | Enter the app-specific password you created in the Requirements step above. 49 | > Note: **Do not enter your actual Apple ID password.** That will not work since we have no way of initiating or validating a two-factor authentication flow. 50 | 51 | Hit **Save**. 52 | 53 | 54 | ## Notarizing a Plugin 55 | 56 | If you have at least one signing authority saved, you can start notarizing your plugins. If you wish to sign different plugins using different signing authorities, you can add or remove signing authorities by clicking the `+` or `-` buttons. 57 | 58 | ![Notarize](img/notarizing.png?raw=true) 59 | 60 | Select the code signing authority you would like to use. 61 | 62 | Select the plugin you want to notarize. Only plugins that contain a framework or bundle need to be notarized, so we’ll only show you those plugins to choose from. 63 | 64 | Hit **Notarize**! 65 | 66 | The plugin will run the appropriate bash commands to initiate notarizing the selected plugin. In the console you will see: 67 | - the command being executed (in gray) 68 | - the response from the commands (in black/white) 69 | - some explanation of what is happening (in orange) 70 | - completion messages (in green) 71 | - errors (in red) 72 | 73 | 74 | ## Behind the scenes 75 | 76 | The plugin performs the following commands behind the scenes: 77 | 78 | 1. We traverse the folders within your plugin to find bundles with a `.framework` or `.bundle` extension. 79 | 80 | 2. For **each** of these bundles: 81 | - We locate the executable binary 82 | - Verify if the bundle has been code signed 83 | ```bash 84 | codesign -dvv “path/to/binary” 85 | ``` 86 | - Code sign the binary if required 87 | ```bash 88 | codesign -f -s ”Developer ID Application: Gita Kumar” --timestamp --identifier ”com.binary.identifier” ”path/to/binary” 89 | ``` 90 | 91 | 3. Archive the plugin bundle 92 | ```bash 93 | zip -r ”path/to/zip” ”path/to/bundle.sketchplugin” 94 | ``` 95 | 96 | 4. Submit the zip for notarizing 97 | ```bash 98 | xcrun altool --notarize-app -f ”path/to/zip” --primary-bundle-id ”plugin.bundle.identifier” -u ”your-apple-id-email@email.com” -p ”your-app-specific-password” --asc-provider ”your-team-id” 99 | ``` 100 | 101 | 102 | When Apple accepts your plugin bundle for notarizing, we receive a response containing a unique `RequestUUID`. We save this request ID on your computer and use it to check the status of our notarizing request. All requests show up in the **History** tab. 103 | 104 | 105 | ## History 106 | 107 | ![Notarize](img/history.png?raw=true) 108 | 109 | All notarizing requests are saved locally on your computer and are accessible in the History tab. Apple usually takes a few minutes to notarize your plugin bundle and sends you an email with the result. 110 | 111 | In the History tab we periodically refresh the status using `altool` (every 30 seconds) while a request is in progress 112 | ```bash 113 | xcrun altool --notarization-info "" -u "your-apple-id-email@email.com" -p "your-app-specific-password" 114 | ``` 115 | 116 | We also save a link to the log file for the request, which is mostly useful when checking for errors in case notarizing fails. 117 | 118 | From the History tab you can also quickly notarize a plugin again if you’ve made changes to it. This is merely a shortcut for submitting a new notarizing request for the associated plugin bundle. 119 | 120 | 121 | ## Disclaimer 122 | 123 | I’ve tested the plugin for my own use cases but, given all the variables in this process, if you encounter some errors please [Create an Issue](https://github.com/abynim/sketch-notarizing-assistant/issues/new) in this repo with as much information as possible. I will do my best to fix issues but I make no guarantees. Remember to obfuscate any personally identifying information when creating issues and posting screenshots. 124 | 125 | 126 | ## Privacy 127 | 128 | The plugin does not capture or transmit any information online, except when submitting your plugin directly to Apple servers. All your credentials and signing authorities are saved locally on your computer. Passwords are saved securely to Keychain, so you may need to enter your computer password to access it in the future. 129 | 130 | 131 | ## Plugs 🤓 132 | 133 | I make plugins for Sketch, including: 134 | 135 | [Sketch Runner](https://sketchrunner.com) - Design faster in Sketch 136 | 137 | [User Flows](https://abynim.github.io/UserFlows/) - A plugin for generating flow diagrams from Artboards in Sketch. 138 | 139 | [Lippy](https://github.com/abynim/lippy) - An interactive Lorem-ipsum generator plugin for Sketch. 140 | 141 | You can find me on Twitter [@abynim](https://twitter.com/abynim) 142 | -------------------------------------------------------------------------------- /img/create-certificate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/img/create-certificate.png -------------------------------------------------------------------------------- /img/history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/img/history.png -------------------------------------------------------------------------------- /img/integrity-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/img/integrity-error.png -------------------------------------------------------------------------------- /img/notarizing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/img/notarizing.png -------------------------------------------------------------------------------- /img/setup-credentials.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abynim/sketch-notarizing-assistant/c56db0c5043b6a4e9fca8559525f9dff03f1bb9c/img/setup-credentials.png --------------------------------------------------------------------------------