github-desktop/app/package-info.ts
2020-12-23 11:57:04 +00:00

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
}