From d224f78065b2825d689f7dbe6c194bc01bde3adb Mon Sep 17 00:00:00 2001
From: kmyuhkyuk <2451614940@qq.com>
Date: Mon, 8 Apr 2024 12:55:41 +0800
Subject: [PATCH] Update
---
Build/App.config | 6 ++
Build/Build.csproj | 108 +++++++++++++++++++++++++++++++
Build/Program.cs | 48 ++++++++++++++
Build/Properties/AssemblyInfo.cs | 36 +++++++++++
Build/ReadMe.txt | 3 +
Build/localized/en.json | 10 +++
Build/localized/zh.json | 10 +++
Build/packages.config | 9 +++
HideDress.sln | 6 ++
HideDress/HideDressPlugin.cs | 2 +-
10 files changed, 237 insertions(+), 1 deletion(-)
create mode 100644 Build/App.config
create mode 100644 Build/Build.csproj
create mode 100644 Build/Program.cs
create mode 100644 Build/Properties/AssemblyInfo.cs
create mode 100644 Build/ReadMe.txt
create mode 100644 Build/localized/en.json
create mode 100644 Build/localized/zh.json
create mode 100644 Build/packages.config
diff --git a/Build/App.config b/Build/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/Build/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Build/Build.csproj b/Build/Build.csproj
new file mode 100644
index 0000000..c7c27e6
--- /dev/null
+++ b/Build/Build.csproj
@@ -0,0 +1,108 @@
+
+
+
+
+
+ Debug
+ AnyCPU
+ {890B32EA-1CB9-45FB-918A-A8A66558FD6F}
+ Exe
+ Build
+ Build
+ v4.7.2
+ 512
+ true
+ true
+
+
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+ OnOutputUpdated
+
+
+
+ ..\packages\CopyBuildAssembly.1.0.0\lib\net472\CopyBuildAssembly.dll
+
+
+ ..\packages\LibGit2Sharp.0.29.0\lib\net472\LibGit2Sharp.dll
+
+
+ ..\packages\Mono.Cecil.0.11.5\lib\net40\Mono.Cecil.dll
+
+
+ ..\packages\Mono.Cecil.0.11.5\lib\net40\Mono.Cecil.Mdb.dll
+
+
+ ..\packages\Mono.Cecil.0.11.5\lib\net40\Mono.Cecil.Pdb.dll
+
+
+ ..\packages\Mono.Cecil.0.11.5\lib\net40\Mono.Cecil.Rocks.dll
+
+
+ ..\packages\Squid-Box.SevenZipSharp.1.6.1.23\lib\net472\SevenZipSharp.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+
+
+ {e5dd6484-115e-4104-aadf-e5610ee4f397}
+ HideDress
+
+
+
+
+
+ 这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。
+
+
+
+
+
+
+
+
+ xcopy $(ProjectDir)localized\ $(TargetDir)localized\ /E /Y
+start $(TargetPath) $(ConfigurationName) $(SolutionDir)
+
+
\ No newline at end of file
diff --git a/Build/Program.cs b/Build/Program.cs
new file mode 100644
index 0000000..f434242
--- /dev/null
+++ b/Build/Program.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using CopyBuildAssembly;
+
+// ReSharper disable ClassNeverInstantiated.Global
+
+namespace Build
+{
+ internal class Program
+ {
+ private static void Main(string[] args)
+ {
+ var baseDirectory = AppDomain.CurrentDomain.BaseDirectory;
+ var arg = args.ElementAtOrDefault(0);
+ var sha = Copy.GetTipSha(args.ElementAtOrDefault(1));
+
+ const string modPath =
+ @"R:\Battlestate Games\Client.0.14.1.2.29197\BepInEx\plugins\kmyuhkyuk-HideDress";
+
+ var versionName = "1.2.7";
+
+ var releaseName = $"{new DirectoryInfo(modPath).Name}-(Release_{versionName}).7z";
+
+ try
+ {
+ Copy.CopyFolder(arg, "Release", Path.Combine(baseDirectory, "localized"), Path.Combine(modPath, "localized"));
+
+ Copy.CopyAssembly(arg, "Release", baseDirectory, modPath, new[]
+ {
+ "HideDress"
+ }, sha);
+
+ Copy.GenerateSevenZip(arg, "Release", modPath, releaseName, @"BepInEx\plugins", Array.Empty(),
+ Array.Empty(), new[] { Path.Combine(baseDirectory, "ReadMe.txt") }, Array.Empty());
+ }
+ catch (Exception ex)
+ {
+ Console.WriteLine(ex);
+
+ Console.ReadKey();
+
+ Process.GetCurrentProcess().Kill();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Build/Properties/AssemblyInfo.cs b/Build/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..955dff9
--- /dev/null
+++ b/Build/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("Build")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Build")]
+[assembly: AssemblyCopyright("Copyright © 2024")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("890b32ea-1cb9-45fb-918a-a8a66558fd6f")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
+//通过使用 "*",如下所示:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Build/ReadMe.txt b/Build/ReadMe.txt
new file mode 100644
index 0000000..610bc16
--- /dev/null
+++ b/Build/ReadMe.txt
@@ -0,0 +1,3 @@
+This Mod Require EFTApi(https://hub.sp-tarkov.com/files/file/1215-eft-api), You need to install it to work
+
+此模组依赖EFTApi(https://hub.sp-tarkov.com/files/file/1215-eft-api), 你需要安装它才能运行
\ No newline at end of file
diff --git a/Build/localized/en.json b/Build/localized/en.json
new file mode 100644
index 0000000..0418680
--- /dev/null
+++ b/Build/localized/en.json
@@ -0,0 +1,10 @@
+{
+ "kmyuhkyuk-HideDress": "Hide Dress",
+ "Hide Dress Settings": "Hide Dress Settings",
+ "Hide Dress Part Settings": "Hide Dress Part Settings",
+ "Keyboard Shortcut Settings": "Keyboard Shortcut Settings",
+ "Hide Player Dress": "Hide Player Dress",
+ "Hide Other Player Dress": "Hide Other Player Dress",
+ "Player": "Player",
+ "Other Player": "Other Player"
+}
\ No newline at end of file
diff --git a/Build/localized/zh.json b/Build/localized/zh.json
new file mode 100644
index 0000000..de318d9
--- /dev/null
+++ b/Build/localized/zh.json
@@ -0,0 +1,10 @@
+{
+ "kmyuhkyuk-HideDress": "隐藏服饰",
+ "Hide Dress Settings": "隐藏服饰设置",
+ "Hide Dress Part Settings": "隐藏服饰部位设置",
+ "Keyboard Shortcut Settings": "快捷键设置",
+ "Hide Player Dress": "隐藏玩家服饰",
+ "Hide Other Player Dress": "隐藏其他玩家服饰",
+ "Player": "玩家",
+ "Other Player": "其他玩家"
+}
\ No newline at end of file
diff --git a/Build/packages.config b/Build/packages.config
new file mode 100644
index 0000000..8b7d589
--- /dev/null
+++ b/Build/packages.config
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HideDress.sln b/HideDress.sln
index 5d836d5..2d6a3d6 100644
--- a/HideDress.sln
+++ b/HideDress.sln
@@ -5,6 +5,8 @@ VisualStudioVersion = 17.1.32407.343
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HideDress", "HideDress\HideDress.csproj", "{E5DD6484-115E-4104-AADF-E5610EE4F397}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Build", "Build\Build.csproj", "{890B32EA-1CB9-45FB-918A-A8A66558FD6F}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,10 @@ Global
{E5DD6484-115E-4104-AADF-E5610EE4F397}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E5DD6484-115E-4104-AADF-E5610EE4F397}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E5DD6484-115E-4104-AADF-E5610EE4F397}.Release|Any CPU.Build.0 = Release|Any CPU
+ {890B32EA-1CB9-45FB-918A-A8A66558FD6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {890B32EA-1CB9-45FB-918A-A8A66558FD6F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {890B32EA-1CB9-45FB-918A-A8A66558FD6F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {890B32EA-1CB9-45FB-918A-A8A66558FD6F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/HideDress/HideDressPlugin.cs b/HideDress/HideDressPlugin.cs
index c5ea43a..5b3b621 100644
--- a/HideDress/HideDressPlugin.cs
+++ b/HideDress/HideDressPlugin.cs
@@ -9,7 +9,7 @@ using static EFTApi.EFTHelpers;
namespace HideDress
{
- [BepInPlugin("com.kmyuhkyuk.HideDress", "kmyuhkyuk-HideDress", "1.2.7")]
+ [BepInPlugin("com.kmyuhkyuk.HideDress", "HideDress", "1.2.7")]
[BepInDependency("com.kmyuhkyuk.EFTApi", "1.2.0")]
[EFTConfigurationPluginAttributes("https://hub.sp-tarkov.com/files/file/583-skin-hide")]
public partial class HideDressPlugin : BaseUnityPlugin