mirror of
https://github.com/desktop/desktop
synced 2024-10-31 11:07:25 +00:00
21 lines
441 B
TypeScript
21 lines
441 B
TypeScript
|
const appPackage: Record<string, string> = require('./package.json')
|
||
|
|
||
|
export function getProductName() {
|
||
|
const productName = appPackage.productName
|
||
|
return process.env.NODE_ENV === 'development'
|
||
|
? `${productName}-dev`
|
||
|
: productName
|
||
|
}
|
||
|
|
||
|
export function getCompanyName() {
|
||
|
return appPackage.companyName
|
||
|
}
|
||
|
|
||
|
export function getVersion() {
|
||
|
return appPackage.version
|
||
|
}
|
||
|
|
||
|
export function getBundleID() {
|
||
|
return appPackage.bundleID
|
||
|
}
|