MCPcopy
hub / github.com/desktop/desktop / toPackageArch

Function toPackageArch

script/build.ts:144–156  ·  view source on GitHub ↗
(targetArch: string | undefined)

Source from the content-addressed store, hash-verified

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

Callers 1

packageAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected