-
Notifications
You must be signed in to change notification settings - Fork 3k
/
electron.config.js
34 lines (33 loc) · 1.13 KB
/
electron.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const ENVIRONMENT = require('../src/CONST/ENVIRONMENT');
module.exports = {
appId: 'com.expensifyreactnative.chat',
productName: 'New Expensify',
extraMetadata: {
main: './desktop/main.js',
electronEnvironment: process.env.SHOULD_DEPLOY_PRODUCTION ? ENVIRONMENT.PRODUCTION : ENVIRONMENT.STAGING,
},
mac: {
category: 'public.app-category.finance',
icon: process.env.SHOULD_DEPLOY_PRODUCTION === 'true' ? './desktop/icon.png' : './desktop/icon-stg.png',
hardenedRuntime: true,
entitlements: 'desktop/entitlements.mac.plist',
entitlementsInherit: 'desktop/entitlements.mac.plist',
type: 'distribution',
},
dmg: {
title: 'New Expensify',
artifactName: 'NewExpensify.dmg',
internetEnabled: true,
},
publish: [{
provider: 's3',
bucket: process.env.SHOULD_DEPLOY_PRODUCTION === 'true' ? 'expensify-cash' : 'staging-expensify-cash',
channel: 'latest',
}],
files: [
'./dist/**/*',
'./desktop/*.js',
'./src/libs/checkForUpdates.js',
'./src/CONST/ENVIRONMENT.js',
],
};