Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyl18 committed Dec 8, 2018
1 parent 4c94700 commit 2aae171
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Binary file modified MahuaPacker.exe
Binary file not shown.
2 changes: 2 additions & 0 deletions TRKS.WF.QQBot/MahuaEvents/InitEvent1.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
Expand Down Expand Up @@ -37,6 +38,7 @@ private void Timer_Elapsed(object sender, ElapsedEventArgs e)
if (ver != localVersion)
{
Messenger.SendDebugInfo($"开始自动更新。当前版本为v{localVersion}, 将会更新到v{ver}");
File.Copy("YUELUO\\TRKS.WF.QQBot\\AutoUpdater.exe", "AutoUpdater.exe",true);
Process.Start("AutoUpdater.exe");
timer1.Stop();
}
Expand Down
6 changes: 6 additions & 0 deletions TRKS.WF.QQBot/MahuaModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ protected override void Load(ContainerBuilder builder)
.As<IGroupJoiningInvitationReceivedMahuaEvent>();
builder.RegisterType<GroupJoiningRequestReceivedMahuaEvent1>()
.As<IGroupJoiningRequestReceivedMahuaEvent>();
builder.RegisterType<InitEvent1>()
.As<IInitializationMahuaEvent>();
builder.RegisterType<UpdatingEvent1>()
.As<IPluginHotUpgradingMahuaEvent>();
builder.RegisterType<UpdatedEvent1>()
.As<IPluginHotUpgradedMahuaEvent>();
// 将需要监听的事件注册,若缺少此注册,则不会调用相关的实现类
}
}
Expand Down

0 comments on commit 2aae171

Please sign in to comment.