diff --git a/.gitignore b/.gitignore index 547271b..a686f77 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,6 @@ package-lock.json Dockerfile.* .DS_Store config.log -autobackup.json \ No newline at end of file +autobackup.json +lib/LANraragi/Plugin/Scripts/ETagConverter.pm +lib/LANraragi/Plugin/Metadata/ETagCN.pm diff --git a/.gitmodules b/.gitmodules index 7a81178..ca9e2d1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,9 @@ [submodule "tools/build/windows/Karen"] path = tools/build/windows/Karen url = https://github.com/WindyCloudCute/Karen +[submodule "customize/ETagConverter"] + path = customize/ETagConverter + url = https://github.com/zhy201810576/ETagConverter +[submodule "customize/ETagCN"] + path = customize/ETagCN + url = https://github.com/zhy201810576/ETagCN diff --git a/customize/ETagCN b/customize/ETagCN new file mode 160000 index 0000000..a5c4473 --- /dev/null +++ b/customize/ETagCN @@ -0,0 +1 @@ +Subproject commit a5c447309c6b847778af5ebd566ed6c32c1e552c diff --git a/customize/ETagConverter b/customize/ETagConverter new file mode 160000 index 0000000..fc9f97a --- /dev/null +++ b/customize/ETagConverter @@ -0,0 +1 @@ +Subproject commit fc9f97ae8ce9982b8f2365e092ccdf4a82524f16 diff --git a/tools/install.pl b/tools/install.pl index 7d9ce48..341dccb 100755 --- a/tools/install.pl +++ b/tools/install.pl @@ -7,6 +7,7 @@ use open ':std', ':encoding(UTF-8)'; use Cwd; use Config; use utf8; +use File::Copy; use feature qw(say); use File::Path qw(make_path); @@ -187,6 +188,14 @@ if ( $front || $full ) { } +#install Customize Plugin ETagCN +cp_customize_plugin("/customize/ETagCN/ETagCN.pm","/lib/LANraragi/Plugin/Metadata/ETagCN.pm","ETagCN"); + +#install Customize Plugin ETagConverter +cp_customize_plugin("/customize/ETagConverter/ETagConverter.pm","/lib/LANraragi/Plugin/Scripts/ETagConverter.pm","ETagConverter"); + + + #Done! say("\r\n一切就绪!您可以通过输入以下命令来启动 LANraragi: \r\n"); say(" ╭─────────────────────────────────────╮"); @@ -228,3 +237,15 @@ sub install_package { say("$package 包已安装,继续..."); } } + +sub cp_customize_plugin { + + my ( $plugin_file, $plugin_path ,$plugin_name) = @_; + $plugin_file = getcwd . $plugin_file; + $plugin_path = getcwd . $plugin_path; + + say("\r\n安装插件: $plugin_name \r\n"); + say("\r\n正在复制 $plugin_file \r\n to $plugin_path"); + copy($plugin_file,$plugin_path) or die "将 $plugin_file 复制到 $plugin_path 失败\n"; + +} \ No newline at end of file