Skip to content

Commit

Permalink
Fix typo, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Jun 8, 2020
1 parent 906a2eb commit 4298abb
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ Project inspired by [Windows apps that amaze us](https://amazing-apps.gitbooks.i
## Example
### Before

<img height="250" alt="Before" src="before.png">
<img height="250" alt="Before" src="https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/before.png">

### Disallow it and save

<img height="250" alt="Disallow it and save" src="disallow.png">
<img height="250" alt="Disallow it and save" src="https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/disallow.png">

### After

<img height="250" alt="After" src="after.png">
<img height="250" alt="After" src="https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/after.png">
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
## 例子
### 屏蔽前

<img height="250" alt="屏蔽前" src="before.png">
<img height="250" alt="屏蔽前" src="https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/before.png">

### 屏蔽并保存

<img height="250" alt="屏蔽并保存" src="disallow.png">
<img height="250" alt="屏蔽并保存" src="https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/disallow.png">

### 屏蔽后

<img height="250" alt="屏蔽后" src="after.png">
<img height="250" alt="屏蔽后" src="https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/after.png">
Binary file modified mwp.exe
Binary file not shown.
10 changes: 5 additions & 5 deletions src/MalwarePatch/Models/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ sealed class Updater
private UpdateLanguage Languages { get; } = new UpdateLanguage();
public DownloadProgressChangedEventHandler ProgressChanged { get; set; }

public const string
UpdateFileName = "__mwp.exe",
UpdateParameter = "--update",
RestartParameter = "--restart",
public const string
UpdateFileName = "__mwp.exe",
UpdateParameter = "--update",
RestartParameter = "--restart",
RemoveOldFileParameter = "--remove";
public Task<FileInfo> DownloadUpdate()
{
Expand All @@ -42,7 +42,7 @@ public Task<FileInfo> DownloadUpdate()
{
File.Delete(UpdateFileName);
}
var downloadLink = "http://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp.exe";
var downloadLink = "https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp.exe";
// var downloadLink = "https://github.com/the1812/malware-patch/raw/master/mwp.exe";
// var downloadLink = GoogleDrive.GetDirectLinkFromId(UpdateId);
var info = new DownloadInfo(downloadLink)
Expand Down
6 changes: 3 additions & 3 deletions src/MalwarePatch/Models/VersionChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ namespace MalwarePatch.Models
sealed class VersionChecker
{
public Version NewVersion { get; private set; }
private Version CurrectVerison => Assembly.GetEntryAssembly().GetName().Version;
private Version CurrectVersion => Assembly.GetEntryAssembly().GetName().Version;
public string Proxy { get; set; }

public bool HasNewVersion
{
get
{
var downloadLink = "http://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp-ver.txt";
var downloadLink = "https://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp-ver.txt";
// var downloadLink = GoogleDrive.GetDirectLinkFromId(NewVersionId);
// var downloadLink = "https://github.com/the1812/malware-patch/raw/master/mwp-ver.txt";
var info = new DownloadInfo(downloadLink)
Expand All @@ -33,7 +33,7 @@ public bool HasNewVersion
//#if DEBUG
// return true;
//#endif
return NewVersion > CurrectVerison;
return NewVersion > CurrectVersion;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/MalwarePatch/UpdateID.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Program = 0B4uebmDoSFx-c0kzcG5yVlZVMlE
Version Github = https://github.com/the1812/malware-patch/raw/preview/mwp-ver.txt
Program Github = https://github.com/the1812/malware-patch/raw/preview/mwp.exe

Version jsDelivr = http://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/mwp-ver.txt
Program jsDelivr = http://cdn.jsdelivr.net/gh/the1812/Malware-Patch@master/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

0 comments on commit 4298abb

Please sign in to comment.