-
Notifications
You must be signed in to change notification settings - Fork 236
/
Copy path.copyconfigrc.js
27 lines (21 loc) · 996 Bytes
/
.copyconfigrc.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
//@ts-check
/** @typedef {import('@wireapp/copy-config').CopyConfigOptions} CopyConfigOptions */
const appConfigPkg = require('./app-config/package.json');
const contentSource = 'wire-desktop/content';
const imageSource = `${contentSource}/image`;
const macOsSource = `${contentSource}/macos`;
const configurationEntry = `wire-web-config-${process.env.APP_ENV !== 'internal' ? 'production' : 'internal'}`;
const repositoryUrl = appConfigPkg.dependencies[configurationEntry];
/** @type {CopyConfigOptions} */
const options = {
files: {
[`${imageSource}/**`]: 'electron/img/',
[`${macOsSource}/**`]: 'resources/macos/',
[`${imageSource}/logo/256x256.png`]: ['resources/icons/256x256.png', 'electron/img/logo.256.png', 'electron/img/logo.png'],
[`${imageSource}/logo/32x32.png`]: 'resources/icons/32x32.png',
[`${imageSource}/logo/logo.ico`]: 'electron/img/logo.ico',
['wire-desktop/.env.defaults']: '.env.defaults',
},
repositoryUrl,
}
module.exports = options;