mirror of
https://github.com/huiyadanli/RevokeMsgPatcher.git
synced 2025-05-23 22:06:06 +08:00
[#] 生成补丁数据到新的位置
This commit is contained in:
parent
1fa0e3b137
commit
82d9b5eb52
1
RevokeMsgPatcher.Assistant/Data/0.6/patch.json
Normal file
1
RevokeMsgPatcher.Assistant/Data/0.6/patch.json
Normal file
File diff suppressed because one or more lines are too long
17
RevokeMsgPatcher.Assistant/FormAssisant.Designer.cs
generated
17
RevokeMsgPatcher.Assistant/FormAssisant.Designer.cs
generated
|
@ -28,21 +28,34 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.txtInfo = new System.Windows.Forms.TextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// FormMain
|
||||
// txtInfo
|
||||
//
|
||||
this.txtInfo.Location = new System.Drawing.Point(12, 12);
|
||||
this.txtInfo.Multiline = true;
|
||||
this.txtInfo.Name = "txtInfo";
|
||||
this.txtInfo.Size = new System.Drawing.Size(484, 238);
|
||||
this.txtInfo.TabIndex = 0;
|
||||
//
|
||||
// FormAssisant
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(508, 262);
|
||||
this.Name = "FormMain";
|
||||
this.Controls.Add(this.txtInfo);
|
||||
this.Name = "FormAssisant";
|
||||
this.Text = "冷血无情的助手界面";
|
||||
this.Load += new System.EventHandler(this.FormMain_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TextBox txtInfo;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
@ -19,7 +20,19 @@ namespace RevokeMsgPatcher.Assistant
|
|||
|
||||
private void FormMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
Console.WriteLine(new JsonData().BagJson());
|
||||
JsonData obj = new JsonData();
|
||||
string json = obj.BagJson();
|
||||
Console.WriteLine(json);
|
||||
|
||||
DirectoryInfo directory = new DirectoryInfo("../../Data/" + obj.Bag().LatestVersion);
|
||||
if (!directory.Exists)
|
||||
{
|
||||
directory.Create();
|
||||
}
|
||||
string path = Path.Combine(directory.FullName, "patch.json");
|
||||
File.WriteAllText(path, json);
|
||||
|
||||
txtInfo.AppendText("生成完毕!位置:" + path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace RevokeMsgPatcher
|
|||
{
|
||||
Apps = AppConfig(),
|
||||
LatestVersion = "0.6",
|
||||
Notice = "公告"
|
||||
Notice = ""
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Data\0.6\patch.json" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
|
|
Loading…
Reference in New Issue
Block a user