mirror of
https://github.com/desktop/desktop
synced 2024-08-24 18:57:33 +00:00
20 lines
431 B
TypeScript
20 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
|
|
}
|