forked from Opentrons/opentrons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectron-builder.config.js
54 lines (52 loc) · 1.31 KB
/
electron-builder.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
'use strict'
const path = require('path')
const { OT_APP_DEPLOY_BUCKET, OT_APP_DEPLOY_FOLDER } = process.env
const DEV_MODE = process.env.NODE_ENV !== 'production'
module.exports = {
appId: 'com.opentrons.app',
electronVersion: '13.1.8',
files: [
'**/*',
{
from: '../app/dist',
to: './ui',
filter: ['**/*'],
},
'build/br-premigration-wheels',
'!Makefile',
],
/* eslint-disable no-template-curly-in-string */
artifactName: '${productName}-v${version}-${os}-${env.BUILD_ID}.${ext}',
/* eslint-enable no-template-curly-in-string */
asar: true,
mac: {
target: process.platform === 'darwin' ? ['dmg', 'zip'] : ['zip'],
category: 'public.app-category.productivity',
type: DEV_MODE ? 'development' : 'distribution',
},
dmg: {
icon: null,
},
win: {
target: ['nsis'],
publisherName: 'Opentrons Labworks Inc.',
},
nsis: {
oneClick: false,
},
linux: {
target: ['AppImage'],
executableName: 'opentrons',
category: 'Science',
},
publish:
OT_APP_DEPLOY_BUCKET && OT_APP_DEPLOY_FOLDER
? {
provider: 's3',
bucket: OT_APP_DEPLOY_BUCKET,
path: OT_APP_DEPLOY_FOLDER,
}
: null,
generateUpdatesFilesForAllChannels: true,
afterSign: path.join(__dirname, './scripts/after-sign.js'),
}