Skip to content

Commit

Permalink
Fixed #27 (part 2).
Browse files Browse the repository at this point in the history
  • Loading branch information
dedepete committed May 10, 2018
1 parent ae244ca commit 657217c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/FreeLauncher/Forms/LauncherForm/LauncherForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ private string DownloadLibraries()
}
if (a.DownloadInfo == null) {
libsToDownload.Add(new DownloadEntry {
Path = a.GetPath(), Url = a.Url
Path = a.GetPath(), Url = a.GetUrl()
}, false);
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions src/FreeLauncher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.10.1588")]
[assembly: AssemblyFileVersion("0.1.10.1588")]
[assembly: AssemblyVersion("0.1.10.1593")]
[assembly: AssemblyFileVersion("0.1.10.1593")]
[assembly: AssemblyInformationalVersion("%version3%_%branch%.%shorthash%")]
8 changes: 8 additions & 0 deletions src/dotMCLauncher.Versioning/Lib/Lib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,13 @@ public string GetPath()
(!string.IsNullOrEmpty(IsNative) ? "-" + IsNative : string.Empty) + ".jar",
s[0].Replace('.', '\\'), s[1], s[2]);
}

/// <summary>
/// Returns full URL. Null if Url is not presented.
/// </summary>
public string GetUrl()
{
return Url != null ? Url += GetPath() : null;
}
}
}
4 changes: 2 additions & 2 deletions src/dotMCLauncher.Versioning/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.0.16")]
[assembly: AssemblyFileVersion("0.2.0.15")]
[assembly: AssemblyVersion("0.2.0.20")]
[assembly: AssemblyFileVersion("0.2.0.19")]

0 comments on commit 657217c

Please sign in to comment.