-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_mac.js
52 lines (49 loc) · 1.47 KB
/
build_mac.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
var nativefier = require('nativefier').default;
// nativefier https://app.cinny.in/ --single-instance --file-download-options '{"saveAs": true}' --browserwindow-options '{"webPreferences": { "webviewTag": true, "nodeIntegration": true, "nodeIntegrationInSubFrames": true, "nativeWindowOpen": true } }' --user-agent firefox --internal-urls "app\.cinny\.*?" --app-version 1.0.0 -p linux --conceal
var options = {
name: "Cinny Desktop",
targetUrl: "https://app.cinny.in/",
platform: "mac",
arch: "x64",
appVersion: "1.1.0",
overwrite: true,
asar: false,
icon: "./icons/icon.icns",
counter: true,
bounce: true,
width: 1280,
height: 800,
showMenuBar: false,
fastQuit: false,
ignoreCertificate: false,
disableGpu: true,
ignoreGpuBlacklist: false,
enableEs3Apis: false,
internalUrls: 'app\.cinny\.*?',
blockExternalUrls: false,
darwinDarkModeSupport: true,
insecure: false,
honest: false,
zoom: 1.0,
singleInstance: true,
clearCache: false,
tray: true,
fileDownloadOptions: {
saveAs: true,
},
browserwindowOptions: {
webPreferences: {
webviewTag: true,
nodeIntegration: true,
nodeIntegrationInSubFrames: true,
nativeWindowOpen: true
}
}
}
nativefier(options, function (error, appPath) {
if (error) {
console.error(error);
return;
}
console.log('App has been nativefied to', appPath);
});