Skip to content

Commit

Permalink
Update remote info
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Oct 1, 2020
1 parent 5619a25 commit c89d462
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 21 deletions.
11 changes: 8 additions & 3 deletions src/MalwarePatch/Assets/certificate-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"2345 2019.6.cer",
"2345 256.2019.6.cer",
"2345 browser 2020.06.cer",
"2345 browser 256.2020.06.cer"
"2345 browser 256.2020.06.cer",
"2345 browser 2020.10.cer",
"2345 browser 256.2020.10.cer"
],
"6789": [
"6789.cer",
Expand All @@ -37,7 +39,8 @@
],
"Baofeng": [
"baofeng.cer",
"baofeng 256.cer"
"baofeng 256.cer",
"baofeng 2020.10.cer"
],
"DongfangToutiao": [
"donfang toutiao.cer",
Expand Down Expand Up @@ -140,7 +143,9 @@
"sogou 2019.8.cer",
"sogou 256.2019.8.cer",
"sogou 2019.10.cer",
"sogou 256.2019.10.cer"
"sogou 256.2019.10.cer",
"sogou 2020.10.cer",
"sogou 256.2020.10.cer"
],
"Sohu": [
"sohu.cer",
Expand Down
20 changes: 8 additions & 12 deletions src/MalwarePatch/Assets/malware-remote-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,10 @@
"match": []
},
"Baofeng": {
"fixed": [],
"match": [
{
"url": "http://home.baofeng.com/",
"regex": "<a(.*?)href=\"(.*?)\"(.*?)>立即下载",
"group": 2
}
]
"fixed": [
"http://dl.baofeng.com/baofeng5/bf5_new.exe"
],
"match": []
},
"DongfangToutiao": {
"fixed": [
Expand All @@ -56,8 +52,8 @@
"fixed": [],
"match": [
{
"url": "http://www.160.com/",
"regex": "href=\"(http[s]?://file1.updrv.com/soft/.*/DriveTheLife.*\\.exe)",
"url": "https://qd.160.com/",
"regex": "href=\"(https://file1.updrv.com/.+?DriveTheLife.+?\.exe)",
"group": 1
}
]
Expand Down Expand Up @@ -98,8 +94,8 @@
},
{
"url": "https://www.liebao.cn/",
"regex": "href=\"(http[s]?://dl.liebao.cn/.*KSbrowser.*\.exe)\"",
"group": 1
"regex": "http://dl.liebao.cn/.+?KSbrowser.+?\.exe",
"group": 0
},
{
"url": "http://www.wps.cn/",
Expand Down
2 changes: 1 addition & 1 deletion src/MalwarePatch/Languages/MainLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public enum Keys
AllowProgramDescription,
}
internal static DateTime LastModifiedTime => File.GetLastWriteTime(Process.GetCurrentProcess().MainModule.FileName);
internal const int UpdateMonth = 6;
internal const int UpdateMonth = 10;
internal static string UpdateTime
{
get
Expand Down
3 changes: 2 additions & 1 deletion src/MalwarePatch/MalwarePatch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@
<PropertyGroup>
<PostBuildEvent>"$(ProjectDir)BuildTools/InsertIcons.exe" "$(TargetPath)" "$(ProjectDir)AppIcons"
if $(ConfigurationName) == Release (
xcopy /Y /F "$(TargetPath)" "$(SolutionDir)../$(TargetFileName)"
xcopy /Y /F /Q "$(TargetPath)" "$(SolutionDir)../$(TargetName).pkg*"
xcopy /Y /F /Q "$(TargetPath)" "$(SolutionDir)../$(TargetFileName)*"
)</PostBuildEvent>
</PropertyGroup>
<ProjectExtensions />
Expand Down
2 changes: 1 addition & 1 deletion src/MalwarePatch/Models/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Task<FileInfo> DownloadUpdate()
{
File.Delete(UpdateFileName);
}
var downloadLink = "https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp.exe";
var downloadLink = "https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp.pkg";
// var downloadLink = "https://github.com/the1812/malware-patch/raw/master/mwp.exe";
// var downloadLink = GoogleDrive.GetDirectLinkFromId(UpdateId);
var info = new DownloadInfo(downloadLink)
Expand Down
4 changes: 2 additions & 2 deletions src/MalwarePatch/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.9.4.0")]
[assembly: AssemblyFileVersion("2.9.4.0")]
[assembly: AssemblyVersion("2.9.5.0")]
[assembly: AssemblyFileVersion("2.9.5.0")]
2 changes: 1 addition & 1 deletion src/MalwarePatch/UpdateID.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Version Github = https://github.com/the1812/malware-patch/raw/preview/mwp-ver.tx
Program Github = https://github.com/the1812/malware-patch/raw/preview/mwp.exe

Version jsDelivr = https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp-ver.txt
Program jsDelivr = https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp.exe
Program jsDelivr = https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp.pkg

0 comments on commit c89d462

Please sign in to comment.