| 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) { |