forked from stream-labs/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.config.js
119 lines (115 loc) · 3.18 KB
/
base.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
const signtool = require('signtool');
const base = {
appId: 'com.streamlabs.slobs',
productName: 'Streamlabs Desktop',
icon: 'media/images/icon.ico',
files: [
'bundles',
'!bundles/*.js.map',
'node_modules',
'vendor',
'app/i18n',
'media/images/game-capture',
'updater/build/bootstrap.js',
'updater/build/bundle-updater.js',
'updater/index.html',
'index.html',
'main.js',
'obs-api',
'updater/mac/index.html',
'updater/mac/Updater.js',
],
directories: {
buildResources: '.',
},
nsis: {
license: 'AGREEMENT',
oneClick: false,
perMachine: true,
allowToChangeInstallationDirectory: true,
include: 'installer.nsh',
},
asarUnpack : ["**/node-libuiohook/**", "**/node-fontinfo/**", "**/font-manager/**", "**/game_overlay/**","**/color-picker/**"],
publish: {
provider: 'generic',
url: 'https://slobs-cdn.streamlabs.com',
},
win: {
executableName: 'Streamlabs OBS',
extraFiles: ['LICENSE', 'AGREEMENT', 'shared-resources/**/*', '!shared-resources/README'],
rfc3161TimeStampServer: 'http://timestamp.digicert.com',
timeStampServer: 'http://timestamp.digicert.com',
signDlls: true,
async sign(config) {
if (process.env.SLOBS_NO_SIGN) return;
if (
config.path.indexOf('node_modules\\obs-studio-node\\data\\obs-plugins\\win-capture') !== -1
) {
console.log(`Skipping ${config.path}`);
return;
}
console.log(`Signing ${config.hash} ${config.path}`);
await signtool.sign(config.path, {
subject: 'Streamlabs (General Workings, Inc.)',
rfcTimestamp: 'http://timestamp.digicert.com',
algorithm: config.hash,
append: config.isNest,
description: config.name,
url: config.site,
});
},
},
mac: {
extraFiles: [
'shared-resources/**/*',
'!shared-resources/README',
// {
// "from": "node_modulesdwadawd/obs-studio-node/Frameworks/*",
// "to": "Frameworks/",
// "filter": ["**/*"]
// },
// {
// "from": "node_modules/obs-studio-node/Frameworks/*",
// "to": "Resources/app.asar.unpacked/node_modules/",
// "filter": ["**/*"]
// }
],
icon: 'media/images/icon-mac.icns',
hardenedRuntime: true,
entitlements: 'electron-builder/entitlements.plist',
entitlementsInherit: 'electron-builder/entitlements.plist',
extendInfo: {
CFBundleURLTypes: [
{
CFBundleURLName: 'Streamlabs OBS Link',
CFBundleURLSchemes: ['slobs'],
},
],
},
},
dmg: {
background: 'media/images/dmg-bg.png',
iconSize: 85,
contents: [
{
x: 130,
y: 208,
},
{
type: 'link',
path: '/Applications',
x: 380,
y: 208,
},
],
},
extraMetadata: {
env: 'production',
sentryFrontendDSN: process.env.SLD_SENTRY_FRONTEND_DSN,
sentryBackendClientURL: process.env.SLD_SENTRY_BACKEND_CLIENT_URL,
sentryBackendClientPreviewURL: process.env.SLD_SENTRY_BACKEND_CLIENT_PREVIEW_URL,
},
afterPack: './electron-builder/afterPack.js',
afterSign: './electron-builder/notarize.js',
};
module.exports = base;