mirror of
https://github.com/desktop/desktop
synced 2024-10-31 11:07:25 +00:00
19 lines
431 B
TypeScript
19 lines
431 B
TypeScript
import { bundleID, companyName, productName, version } from './package.json'
|
|
|
|
export function getProductName() {
|
|
return process.env.NODE_ENV === 'development'
|
|
? `${productName}-dev`
|
|
: productName
|
|
}
|
|
|
|
export function getCompanyName() {
|
|
return companyName
|
|
}
|
|
|
|
export function getVersion() {
|
|
return version
|
|
}
|
|
|
|
export function getBundleID() {
|
|
return process.env.NODE_ENV === 'development' ? `${bundleID}Dev` : bundleID
|
|
}
|