-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharguments-builder.config.ts
100 lines (100 loc) · 2.71 KB
/
arguments-builder.config.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
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
import { defineConfig } from "@iringo/arguments-builder";
export default defineConfig({
output: {
surge: {
path: "./dist/iRingo.TV.sgmodule",
transformEgern: {
enable: true,
path: "./dist/iRingo.TV.yaml",
},
},
loon: {
path: "./dist/iRingo.TV.plugin",
},
customItems: [
{
path: "./dist/iRingo.TV.snippet",
template: "./template/quantumultx.handlebars",
},
{
path: "./dist/iRingo.TV.stoverride",
template: "./template/stash.handlebars",
},
{
path: "./dist/iRingo.TV.srmodule",
template: "./template/shadowrocket.handlebars",
},
],
dts: { isExported: true, path: "./src/types.d.ts" },
boxjsSettings: {
path: "./template/boxjs.settings.json",
scope: "@iRingo.TV.Settings",
},
},
args: [
{
key: "ThirdParty",
name: "启用第三方 App 与 TV app 关联功能",
defaultValue: false,
type: "boolean",
description: "是否将桌面版/macOS版/app版等平台的 TV app 转换至 iPad 版,以启用第三方 App 与 TV app 关联功能(如: Disney+, Prime Video 等)。",
},
{
key: "HLSUrl",
name: "[主机名] HTTP实时流(HLS)地址",
defaultValue: "play-edge.itunes.apple.com",
type: "string",
description: "因为FPS服务域名禁止MitM,修改此地址可以分离HLS与FPS的域名,从而恢复对DualSubs的双语字幕支持。",
options: [
{
key: "",
label: "OFF(不修改)",
},
{
key: "play.itunes.apple.com",
label: "play.itunes.apple.com (不推荐,与播放服务域名重叠)",
},
{
key: "play-edge.itunes.apple.com",
label: "play-edge.itunes.apple.com (默认)",
},
],
},
{
key: "FPSUrl",
name: "[主机名] FairPlay流(FPS)地址",
defaultValue: "play.itunes.apple.com",
type: "string",
description: "因为FPS服务域名禁止MitM,修改此地址可以分离HLS与FPS的域名,从而恢复对DualSubs的双语字幕支持。",
options: [
{
key: "",
label: "OFF(不修改)",
},
{
key: "play.itunes.apple.com",
label: "play.itunes.apple.com (默认)",
},
{
key: "play-edge.itunes.apple.com",
label: "play-edge.itunes.apple.com (不推荐,与播放服务域名重叠)",
},
],
},
{
key: "LogLevel",
name: "[调试] 日志等级",
type: "string",
defaultValue: "WARN",
description: "选择脚本日志的输出等级,低于所选等级的日志将全部输出。",
options: [
{ key: "OFF", label: "🔴 关闭" },
{ key: "ERROR", label: "❌ 错误" },
{ key: "WARN", label: "⚠️ 警告" },
{ key: "INFO", label: "ℹ️ 信息" },
{ key: "DEBUG", label: "🅱️ 调试" },
{ key: "ALL", label: "全部" },
],
},
],
});