-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download manager, localization engine
- Loading branch information
1 parent
a53d2c8
commit e72e94d
Showing
203 changed files
with
10,814 additions
and
2,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace LibgenDesktop.Setup | ||
{ | ||
internal class AppFile | ||
{ | ||
public AppFile(string sourceFilePath, string targetFilePath) | ||
{ | ||
SourceFilePath = sourceFilePath; | ||
TargetFilePath = targetFilePath; | ||
} | ||
|
||
public string SourceFilePath { get; } | ||
public string TargetFilePath { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,58 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace LibgenDesktop.Setup | ||
{ | ||
internal static class AppFiles | ||
{ | ||
static AppFiles() | ||
{ | ||
X86 = new List<AppFile>(); | ||
X64 = new List<AppFile>(); | ||
AddFile(Constants.MAIN_EXECUTABLE_NAME); | ||
AddFile("System.ValueTuple.dll"); | ||
AddFile("Newtonsoft.Json.dll"); | ||
AddFile("SharpCompress.dll"); | ||
AddFile("MaterialDesignThemes.Wpf.dll"); | ||
AddFile("MaterialDesignColors.dll"); | ||
AddFile("Dragablz.dll"); | ||
AddFile("System.Data.SQLite.dll"); | ||
AddFile("NLog.dll"); | ||
AddFile("EPPlus.dll"); | ||
AddFile("HtmlAgilityPack.dll"); | ||
AddFile("Microsoft.WindowsAPICodePack.dll"); | ||
AddFile("Microsoft.WindowsAPICodePack.Shell.dll"); | ||
X86.Add(new AppFile(@"x86\SQLite.Interop.dll", "SQLite.Interop.dll")); | ||
X64.Add(new AppFile(@"x64\SQLite.Interop.dll", "SQLite.Interop.dll")); | ||
AddFile(@"Languages\English.lng"); | ||
AddFile(@"Languages\Russian.lng"); | ||
AddFile(@"Mirrors\mirrors.config"); | ||
AddFile(@"Mirrors\libgen_io_nonfiction.xslt"); | ||
AddFile(@"Mirrors\libgen_io_fiction.xslt"); | ||
AddFile(@"Mirrors\libgen_io_scimag.xslt"); | ||
AddFile(@"Mirrors\libgen_pw_nonfiction_step1.xslt"); | ||
AddFile(@"Mirrors\libgen_pw_nonfiction_step2.xslt"); | ||
AddFile(@"Mirrors\libgen_pw_fiction_step1.xslt"); | ||
AddFile(@"Mirrors\libgen_pw_fiction_step2.xslt"); | ||
AddFile(@"Mirrors\libgen_pw_scimag_step1.xslt"); | ||
AddFile(@"Mirrors\libgen_pw_scimag_step2.xslt"); | ||
AddFile(@"Mirrors\bookfi_net.xslt"); | ||
AddFile(@"Mirrors\b_ok_org.xslt"); | ||
AddFile(@"Mirrors\booksc_org.xslt"); | ||
} | ||
|
||
public static string GetBinariesDirectoryPath(bool is64Bit) | ||
{ | ||
return String.Format(Constants.BINARIES_DIRECTORY_PATH_FORMAT, (is64Bit ? "64" : "86")); | ||
} | ||
|
||
public static string[] GetFileList(bool is64Bit) | ||
public static List<AppFile> X86 { get; } | ||
public static List<AppFile> X64 { get; } | ||
|
||
private static void AddFile(string filePath) | ||
{ | ||
return new[] | ||
{ | ||
Constants.MAIN_EXECUTABLE_NAME, | ||
"System.ValueTuple.dll", | ||
"Newtonsoft.Json.dll", | ||
"SharpCompress.dll", | ||
"MaterialDesignThemes.Wpf.dll", | ||
"MaterialDesignColors.dll", | ||
"Dragablz.dll", | ||
"System.Data.SQLite.dll", | ||
"NLog.dll", | ||
"EPPlus.dll", | ||
(is64Bit ? "x64" : "x86") + @"\SQLite.Interop.dll", | ||
"mirrors.config" | ||
}; | ||
X86.Add(new AppFile(filePath, filePath)); | ||
X64.Add(new AppFile(filePath, filePath)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace LibgenDesktop.Infrastructure | ||
{ | ||
internal interface IMessageBox | ||
{ | ||
void ShowMessage(string title, string text, string ok, IWindowContext parentWindowContext); | ||
bool ShowPrompt(string title, string text, string yes, string no, IWindowContext parentWindowContext); | ||
} | ||
} |
Oops, something went wrong.