MCPcopy
hub / github.com/desktop/desktop / getExecutableName

Function getExecutableName

script/dist-info.ts:23–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23export function getExecutableName() {
24 const suffix = process.env.NODE_ENV === 'development' ? '-dev' : ''
25
26 if (process.platform === 'win32') {
27 return `${getWindowsIdentifierName()}${suffix}`
28 } else if (process.platform === 'linux') {
29 return 'desktop'
30 } else {
31 return productName
32 }
33}
34
35export function getOSXZipName() {
36 return `${productName}-${getDistArchitecture()}.zip`

Callers 6

run.tsFile · 0.90
packageAppFunction · 0.90
getDistPathFunction · 0.85
getWindowsInstallerNameFunction · 0.85
getWindowsStandaloneNameFunction · 0.85

Calls 1

getWindowsIdentifierNameFunction · 0.85

Tested by

no test coverage detected