Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyl18 committed Dec 8, 2018
1 parent 8cefc56 commit 4e25bd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AutoUpdater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ static void Main(string[] args)
dynamic jsonArt = new JArray(JsonConvert.DeserializeObject(value));
foreach (dynamic art in jsonArt[0])
{
if (art.fileName == name)
string n = art.fileName;
if (Path.GetFileNameWithoutExtension(n).Equals(name, StringComparison.OrdinalIgnoreCase))
{
webClient.DownloadFile($"https://ci.appveyor.com/api/buildjobs/{jsonInfo.build.jobs[0].jobId.Value}/artifacts/{art.fileName.Value}", name);
//Directory.Delete("YUELUO", true);
Expand Down

0 comments on commit 4e25bd6

Please sign in to comment.