-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
proton_client_linux.js
42 lines (40 loc) · 1.15 KB
/
proton_client_linux.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
var nativefier = require('nativefier').default;
// possible options, defaults unless specified otherwise
var options = {
name: 'proton-client', // will be inferred if not specified
targetUrl: 'https://mail.protonmail.com', // required
platform: 'linux', // defaults to the current system
arch: 'x64', // defaults to the current system
appVersion: '1.2.3',
overwrite: true,
asar: false, // see conceal
icon: './icons/icon.png',
counter: true,
bounce: true,
width: 1440,
height: 900,
showMenuBar: false,
fastQuit: false,
ignoreCertificate: false,
disableGpu: false,
ignoreGpuBlacklist: false,
enableEs3Apis: false,
internalUrls: '(http(s)?:\/\/.)?(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)?(protonmail.com)', // defaults to URLs on same second-level domain as app
blockExternalUrls: false,
insecure: false,
honest: false,
zoom: 1.0,
singleInstance: true,
clearCache: false,
tray: true,
fileDownloadOptions: {
saveAs: true, // always show "Save As" dialog
},
};
nativefier(options, function (error, appPath) {
if (error) {
console.error(error);
return;
}
console.log('App has been nativefied to', appPath);
});