(targetArch: string | undefined)
| 142 | } |
| 143 | |
| 144 | const toPackageArch = (targetArch: string | undefined): OfficialArch => { |
| 145 | if (targetArch === undefined) { |
| 146 | targetArch = os.arch() |
| 147 | } |
| 148 | |
| 149 | if (targetArch === 'arm64' || targetArch === 'x64') { |
| 150 | return targetArch |
| 151 | } |
| 152 | |
| 153 | throw new Error( |
| 154 | `Building Desktop for architecture '${targetArch}' is not supported` |
| 155 | ) |
| 156 | } |
| 157 | |
| 158 | // get notarization deets, unless we're not going to publish this |
| 159 | const osxNotarize = isPublishableBuild ? getNotarizationOptions() : undefined |