Skip to content

Commit

Permalink
build: config
Browse files Browse the repository at this point in the history
Update arguments-builder.config.ts
Update rspack.dev.config.js
Update rspack.config.js
  • Loading branch information
VirgilClyne committed Nov 30, 2024
1 parent dc95434 commit f871c21
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 39 deletions.
16 changes: 4 additions & 12 deletions arguments-builder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ export default defineConfig({
output: {
surge: {
path: "./dist/DualSubs.Netflix.sgmodule",
transformEgern: {
enable: true,
path: "./dist/DualSubs.Netflix.yaml",
},
},
loon: {
path: "./dist/DualSubs.Netflix.plugin",
Expand All @@ -17,10 +21,6 @@ export default defineConfig({
path: "./dist/DualSubs.Netflix.stoverride",
template: "./template/stash.handlebars",
},
{
path: "./dist/DualSubs.Netflix.yaml",
template: "./template/egern.handlebars",
},
{
path: "./dist/DualSubs.Netflix.srmodule",
template: "./template/shadowrocket.handlebars",
Expand All @@ -36,14 +36,6 @@ export default defineConfig({
},
},
args: [
{
key: "Switch",
name: "总功能开关",
defaultValue: true,
type: "boolean",
description: "是否启用此APP修改",
exclude: ["surge", "loon"],
},
{
key: "Type",
name: "[字幕] 启用类型",
Expand Down
1 change: 1 addition & 0 deletions rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export default defineConfig({
banner: pkg.homepage,
}),
],
devtool: false,
performance: false,
});
1 change: 1 addition & 0 deletions rspack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export default defineConfig({
banner: pkg.homepage,
}),
],
devtool: false,
performance: false,
});
2 changes: 1 addition & 1 deletion template/boxjs.settings.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"id":"@DualSubs.Netflix.Settings.Switch","name":"总功能开关","type":"boolean","val":true,"desc":"是否启用此APP修改"},{"id":"@DualSubs.Netflix.Settings.Type","name":"[字幕] 启用类型","type":"selects","val":"Translate","items":[{"key":"Translate","label":"翻译字幕(翻译器)"}],"desc":"请选择要使用的字幕,双语字幕将使用您选择类型呈现。"},{"id":"@DualSubs.Netflix.Settings.Languages[0]","name":"[字幕] 主语言(源语言)","type":"selects","val":"AUTO","items":[{"key":"AUTO","label":"自动 - Automatic"},{"key":"ZH","label":"中文(自动)"},{"key":"ZH-HANS","label":"中文(简体)"},{"key":"ZH-HK","label":"中文(香港)"},{"key":"ZH-HANT","label":"中文(繁体)"},{"key":"EN","label":"English - 英语(自动)"},{"key":"ES","label":"Español - 西班牙语(自动)"},{"key":"JA","label":"日本語 - 日语"},{"key":"KO","label":"한국어 - 韩语"},{"key":"DE","label":"Deutsch - 德语"},{"key":"FR","label":"Français - 法语"},{"key":"TR","label":"Türkçe - 土耳其语"},{"key":"KM","label":"ភាសាខ្មែរ - 高棉语"}],"desc":"当“主语言”字幕存在时,将生成“主语言/副语言(翻译)”与“主语言(外挂)”的字幕或字幕选项。仅当源语言识别不准确时更改此选项。"},{"id":"@DualSubs.Netflix.Settings.Languages[1]","name":"[字幕] 副语言(目标语言)","type":"selects","val":"ZH","items":[{"key":"ZH","label":"中文(自动)"},{"key":"ZH-HANS","label":"中文(简体)"},{"key":"ZH-HK","label":"中文(香港)"},{"key":"ZH-HANT","label":"中文(繁体)"},{"key":"EN","label":"English - 英语(自动)"},{"key":"EN-US","label":"英语(美国)"},{"key":"ES","label":"Español - 西班牙语(自动)"},{"key":"ES-ES","label":"Español - 西班牙语"},{"key":"ES-419","label":"西班牙语(拉丁美洲)"},{"key":"JA","label":"日本語 - 日语"},{"key":"KO","label":"한국어 - 韩语"},{"key":"DE","label":"Deutsch - 德语"},{"key":"FR","label":"Français - 法语"},{"key":"TR","label":"Türkçe - 土耳其语"},{"key":"KM","label":"ភាសាខ្មែរ - 高棉语"}],"desc":"当“副语言”字幕存在时,将生成“副语言/主语言(官方)”的字幕或字幕选项。"},{"id":"@DualSubs.Netflix.Settings.Position","name":"[字幕] 主语言(源语言)字幕位置","type":"selects","val":"Forward","items":[{"key":"Forward","label":"上面(第一行)"},{"key":"Reverse","label":"下面(第二行)"}],"desc":"主语言(源语言)字幕的显示位置。"},{"id":"@DualSubs.Netflix.Settings.Vendor","name":"[翻译器] 服务商API","type":"selects","val":"Google","items":[{"key":"Google","label":"Google Translate"},{"key":"Microsoft","label":"Microsoft Translator(需填写API)"}],"desc":"请选择翻译器所使用的服务商API,更多翻译选项请使用BoxJs。"},{"id":"@DualSubs.Netflix.Settings.ShowOnly","name":"[翻译器] 只显示翻译字幕","type":"boolean","val":false,"desc":"是否仅显示翻译后的字幕,不显示源语言字幕。"}]
[{"id":"@DualSubs.Netflix.Settings.Type","name":"[字幕] 启用类型","type":"selects","val":"Translate","items":[{"key":"Translate","label":"翻译字幕(翻译器)"}],"desc":"请选择要使用的字幕,双语字幕将使用您选择类型呈现。"},{"id":"@DualSubs.Netflix.Settings.Languages[0]","name":"[字幕] 主语言(源语言)","type":"selects","val":"AUTO","items":[{"key":"AUTO","label":"自动 - Automatic"},{"key":"ZH","label":"中文(自动)"},{"key":"ZH-HANS","label":"中文(简体)"},{"key":"ZH-HK","label":"中文(香港)"},{"key":"ZH-HANT","label":"中文(繁体)"},{"key":"EN","label":"English - 英语(自动)"},{"key":"ES","label":"Español - 西班牙语(自动)"},{"key":"JA","label":"日本語 - 日语"},{"key":"KO","label":"한국어 - 韩语"},{"key":"DE","label":"Deutsch - 德语"},{"key":"FR","label":"Français - 法语"},{"key":"TR","label":"Türkçe - 土耳其语"},{"key":"KM","label":"ភាសាខ្មែរ - 高棉语"}],"desc":"当“主语言”字幕存在时,将生成“主语言/副语言(翻译)”与“主语言(外挂)”的字幕或字幕选项。仅当源语言识别不准确时更改此选项。"},{"id":"@DualSubs.Netflix.Settings.Languages[1]","name":"[字幕] 副语言(目标语言)","type":"selects","val":"ZH","items":[{"key":"ZH","label":"中文(自动)"},{"key":"ZH-HANS","label":"中文(简体)"},{"key":"ZH-HK","label":"中文(香港)"},{"key":"ZH-HANT","label":"中文(繁体)"},{"key":"EN","label":"English - 英语(自动)"},{"key":"EN-US","label":"英语(美国)"},{"key":"ES","label":"Español - 西班牙语(自动)"},{"key":"ES-ES","label":"Español - 西班牙语"},{"key":"ES-419","label":"西班牙语(拉丁美洲)"},{"key":"JA","label":"日本語 - 日语"},{"key":"KO","label":"한국어 - 韩语"},{"key":"DE","label":"Deutsch - 德语"},{"key":"FR","label":"Français - 法语"},{"key":"TR","label":"Türkçe - 土耳其语"},{"key":"KM","label":"ភាសាខ្មែរ - 高棉语"}],"desc":"当“副语言”字幕存在时,将生成“副语言/主语言(官方)”的字幕或字幕选项。"},{"id":"@DualSubs.Netflix.Settings.Position","name":"[字幕] 主语言(源语言)字幕位置","type":"selects","val":"Forward","items":[{"key":"Forward","label":"上面(第一行)"},{"key":"Reverse","label":"下面(第二行)"}],"desc":"主语言(源语言)字幕的显示位置。"},{"id":"@DualSubs.Netflix.Settings.Vendor","name":"[翻译器] 服务商API","type":"selects","val":"Google","items":[{"key":"Google","label":"Google Translate"},{"key":"Microsoft","label":"Microsoft Translator(需填写API)"}],"desc":"请选择翻译器所使用的服务商API,更多翻译选项请使用BoxJs。"},{"id":"@DualSubs.Netflix.Settings.ShowOnly","name":"[翻译器] 只显示翻译字幕","type":"boolean","val":false,"desc":"是否仅显示翻译后的字幕,不显示源语言字幕。"}]
26 changes: 0 additions & 26 deletions template/egern.handlebars

This file was deleted.

0 comments on commit f871c21

Please sign in to comment.