MCPcopy Index your code
hub / github.com/desktop/desktop / toPackagePlatform

Function toPackagePlatform

script/build.ts:135–142  ·  view source on GitHub ↗
(platform: NodeJS.Platform)

Source from the content-addressed store, hash-verified

133 // not sure if this is needed anywhere, so I'm just going to inline it here
134 // for now and see what the future brings...
135 const toPackagePlatform = (platform: NodeJS.Platform) => {
136 if (platform === 'win32' || platform === 'darwin' || platform === 'linux') {
137 return platform
138 }
139 throw new Error(
140 `Unable to convert to platform for electron-packager: '${process.platform}`
141 )
142 }
143
144 const toPackageArch = (targetArch: string | undefined): OfficialArch => {
145 if (targetArch === undefined) {

Callers 1

packageAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected