forked from rippin93/tidal-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
32 lines (30 loc) · 833 Bytes
/
main.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
import {buildNativefierApp} from 'nativefier';
import colors from 'colors/safe.js';
// we use nativefier, and just inject code, because that's all we need really
const options = {
name: 'TIDAL',
targetUrl: 'https://listen.tidal.com', // required
out: 'build/',
icon: './icon.png',
bounce: false,
width: 1920,
height: 1080,
showMenuBar: false,
fastQuit: false,
honest: false,
conceal: false,
zoom: 1.0,
singleInstance: true,
clearCache: false,
tray: true,
verbose: true,
electronVersion: "15.3.0",
inject: ["./custom.js"],
globalShortcuts: "shortcuts.json",
widevine: true,
};
buildNativefierApp(options).then((appPath) => {
console.log(colors.bold(colors.green('TIDAL is ready to start. cd to "'+appPath+'", and run ./TIDAL')));
}).catch((error) => {
console.log(colors.red(error));
});