This commit is contained in:
the1812 2019-09-03 10:11:41 +08:00
parent 15f8642457
commit 3993f6b685
9 changed files with 5 additions and 9311 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@ namespace BilibiliEvolved.Build
public ProjectBuilder BuildBundle()
{
var urlList = from file in Directory.GetFiles("min")
where !file.Contains("dark-slice")
where !file.Contains("dark-slice") && !Path.GetFileName(file).StartsWith("bundle.")
select file.Replace(@"\", "/");
var hashDict = new Dictionary<string, string>();
var zipName = "min/bundle.zip";
@ -30,9 +30,6 @@ namespace BilibiliEvolved.Build
foreach (var url in urlList)
{
var filename = Path.GetFileName(url);
if (filename.StartsWith("bundle.")) {
continue;
}
var hash = string.Join("", sha256.ComputeHash(File.OpenRead(url)).Select(b => b.ToString("X2")).ToArray());
zip.CreateEntryFromFile(url, filename);
hashDict.Add(filename, hash);

View File

@ -45,7 +45,7 @@ namespace BilibiliEvolved.Build
// select "min/" + match.Groups[1].Value.Trim()
// ).ToList();
var urlList = from file in Directory.GetFiles("min")
where !file.Contains("dark-slice")
where !file.Contains("dark-slice") && !Path.GetFileName(file).StartsWith("bundle.")
select file.Replace(@"\", "/");
var downloadCodeStart = @"// \+#Offline build placeholder";

View File

@ -13,7 +13,7 @@ namespace BilibiliEvolved.Build
{
var onlineRoot = $"https://raw.githubusercontent.com/{config.Owner}/Bilibili-Evolved/preview/";
var urlList = from file in Directory.GetFiles("min")
where !file.Contains("dark-slice")
where !file.Contains("dark-slice") && !Path.GetFileName(file).StartsWith("bundle.")
select file.Replace(@"\", "/");
var onlineData = "const onlineData = {};" + Environment.NewLine;
foreach (var url in urlList)

Binary file not shown.

Binary file not shown.