-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathutils.ts
42 lines (38 loc) · 999 Bytes
/
utils.ts
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
import path from "path";
// 判断process.argv0是否包含bun.exe
export const isBun = process.argv0.includes("bun.exe");
export const currentPath = process.argv0.includes("bun.exe")
? ""
: path.dirname(process.argv0);
export const USER_AGENT =
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
"AppleWebKit/537.36 (KHTML, like Gecko) " +
"DMMPlayerv2/2.4.0 " +
"Chrome/120.0.6099.227 Electron/28.2.0 Safari/537.36";
export const executables = [
{
name: "ffmpeg.exe",
isDir: false,
dirPath: path.join(currentPath, "ffmpeg.exe"),
},
{
name: "mp4dump.exe",
isDir: false,
dirPath: path.join(currentPath, "mp4dump.exe"),
},
{
name: "mp4decrypt.exe",
isDir: false,
dirPath: path.join(currentPath, "mp4decrypt.exe"),
},
{
name: "private_key.pem",
isDir: false,
dirPath: path.join(currentPath, "private_key.pem"),
},
{
name: "client_id.bin",
isDir: false,
dirPath: path.join(currentPath, "client_id.bin"),
},
];