feat: 更新到最新升级程序
This commit is contained in:
parent
7cfab47216
commit
7e7718b9e0
Binary file not shown.
35
updater/Form1.Designer.cs
generated
35
updater/Form1.Designer.cs
generated
@ -35,8 +35,7 @@
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.IconClose = new System.Windows.Forms.PictureBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.panelLog = new System.Windows.Forms.Panel();
|
||||
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
||||
this.panelLog = new AntdUI.Panel();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.IconClose)).BeginInit();
|
||||
this.panelLog.SuspendLayout();
|
||||
@ -44,12 +43,13 @@
|
||||
//
|
||||
// LabelLog
|
||||
//
|
||||
this.LabelLog.AutoEllipsis = true;
|
||||
this.LabelLog.BackColor = System.Drawing.Color.Transparent;
|
||||
this.LabelLog.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.LabelLog.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.LabelLog.Location = new System.Drawing.Point(2, 2);
|
||||
this.LabelLog.MaximumSize = new System.Drawing.Size(296, 0);
|
||||
this.LabelLog.MinimumSize = new System.Drawing.Size(296, 0);
|
||||
this.LabelLog.Location = new System.Drawing.Point(5, 5);
|
||||
this.LabelLog.Name = "LabelLog";
|
||||
this.LabelLog.Size = new System.Drawing.Size(296, 21);
|
||||
this.LabelLog.Size = new System.Drawing.Size(290, 100);
|
||||
this.LabelLog.TabIndex = 0;
|
||||
this.LabelLog.Text = "版本检测中 ...";
|
||||
this.LabelLog.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
@ -114,31 +114,21 @@
|
||||
//
|
||||
// panelLog
|
||||
//
|
||||
this.panelLog.AutoScroll = true;
|
||||
this.panelLog.Back = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(248)))), ((int)(((byte)(249)))));
|
||||
this.panelLog.Controls.Add(this.LabelLog);
|
||||
this.panelLog.Location = new System.Drawing.Point(40, 58);
|
||||
this.panelLog.Location = new System.Drawing.Point(40, 60);
|
||||
this.panelLog.Name = "panelLog";
|
||||
this.panelLog.Size = new System.Drawing.Size(300, 114);
|
||||
this.panelLog.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.panelLog.Radius = 4;
|
||||
this.panelLog.Size = new System.Drawing.Size(300, 110);
|
||||
this.panelLog.TabIndex = 8;
|
||||
//
|
||||
// richTextBox1
|
||||
//
|
||||
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.richTextBox1.Location = new System.Drawing.Point(237, 149);
|
||||
this.richTextBox1.Name = "richTextBox1";
|
||||
this.richTextBox1.ReadOnly = true;
|
||||
this.richTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
|
||||
this.richTextBox1.Size = new System.Drawing.Size(100, 96);
|
||||
this.richTextBox1.TabIndex = 9;
|
||||
this.richTextBox1.Text = "";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.ClientSize = new System.Drawing.Size(380, 260);
|
||||
this.Controls.Add(this.richTextBox1);
|
||||
this.Controls.Add(this.panelLog);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.ButtonProcess);
|
||||
@ -168,8 +158,7 @@
|
||||
private System.Windows.Forms.PictureBox IconClose;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Panel panelLog;
|
||||
private System.Windows.Forms.RichTextBox richTextBox1;
|
||||
private AntdUI.Panel panelLog;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,11 +30,7 @@ namespace updater
|
||||
* pre-gm-plugin.gachafun.com 预发布
|
||||
* gm-plugin.gachafun.com 正式发布
|
||||
*/
|
||||
#if DEBUG
|
||||
private static string UpgradeInfoURI = "https://gm-plugin.gachafun.com/";
|
||||
#else
|
||||
private static string UpgradeInfoURI = "https://gm-plugin.gachafun.com/";
|
||||
#endif
|
||||
private static string UpgradeInfoURI = "https://gm-plugin-fn.gachafun.com/";
|
||||
|
||||
private string updateSource;
|
||||
|
||||
@ -187,15 +183,8 @@ namespace updater
|
||||
private void ProcessUpdate(UpgradeModel update)
|
||||
{
|
||||
this.upgradeInfo = update.Info;
|
||||
//richTextBox1.Text
|
||||
richTextBox1.Text = update.Info.Message
|
||||
+ @"Com加载项勾选
|
||||
重新安装插件
|
||||
升级office或wps的版本
|
||||
注册表检测
|
||||
Com加载项勾选
|
||||
重新安装插件
|
||||
补充:无论windowS10或11。在安装插件时,需要先装wps在安装插件,在安装插件。否则菜单中不会显示校对王插件入口";
|
||||
|
||||
LabelLog.Text = update.Info.Message;
|
||||
|
||||
if (localVersion == null || update.Info.NeedUpgrade(localVersion.Version))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user