MCPcopy
hub / github.com/desktop/desktop / getChannel

Function getChannel

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

Source from the content-addressed store, hash-verified

111 ['production', 'beta', 'test'].includes(getChannel())
112
113export const getChannel = () =>
114 process.env.RELEASE_CHANNEL ?? process.env.NODE_ENV ?? 'development'
115
116export function getDistArchitecture(): 'arm64' | 'x64' {
117 // If a specific npm_config_arch is set, we use that one instead of the OS arch (to support cross compilation)

Callers 6

build.tsFile · 0.90
app-info.tsFile · 0.90
isPublishableFunction · 0.85
getUpdatesURLFunction · 0.85
shouldMakeDeltaFunction · 0.85
getIconDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected