mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix bugs
This commit is contained in:
parent
15f8642457
commit
3993f6b685
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
@ -16,7 +16,7 @@ namespace BilibiliEvolved.Build
|
|||||||
public ProjectBuilder BuildBundle()
|
public ProjectBuilder BuildBundle()
|
||||||
{
|
{
|
||||||
var urlList = from file in Directory.GetFiles("min")
|
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(@"\", "/");
|
select file.Replace(@"\", "/");
|
||||||
var hashDict = new Dictionary<string, string>();
|
var hashDict = new Dictionary<string, string>();
|
||||||
var zipName = "min/bundle.zip";
|
var zipName = "min/bundle.zip";
|
||||||
@ -30,9 +30,6 @@ namespace BilibiliEvolved.Build
|
|||||||
foreach (var url in urlList)
|
foreach (var url in urlList)
|
||||||
{
|
{
|
||||||
var filename = Path.GetFileName(url);
|
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());
|
var hash = string.Join("", sha256.ComputeHash(File.OpenRead(url)).Select(b => b.ToString("X2")).ToArray());
|
||||||
zip.CreateEntryFromFile(url, filename);
|
zip.CreateEntryFromFile(url, filename);
|
||||||
hashDict.Add(filename, hash);
|
hashDict.Add(filename, hash);
|
||||||
|
|||||||
@ -45,7 +45,7 @@ namespace BilibiliEvolved.Build
|
|||||||
// select "min/" + match.Groups[1].Value.Trim()
|
// select "min/" + match.Groups[1].Value.Trim()
|
||||||
// ).ToList();
|
// ).ToList();
|
||||||
var urlList = from file in Directory.GetFiles("min")
|
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(@"\", "/");
|
select file.Replace(@"\", "/");
|
||||||
|
|
||||||
var downloadCodeStart = @"// \+#Offline build placeholder";
|
var downloadCodeStart = @"// \+#Offline build placeholder";
|
||||||
|
|||||||
@ -13,7 +13,7 @@ namespace BilibiliEvolved.Build
|
|||||||
{
|
{
|
||||||
var onlineRoot = $"https://raw.githubusercontent.com/{config.Owner}/Bilibili-Evolved/preview/";
|
var onlineRoot = $"https://raw.githubusercontent.com/{config.Owner}/Bilibili-Evolved/preview/";
|
||||||
var urlList = from file in Directory.GetFiles("min")
|
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(@"\", "/");
|
select file.Replace(@"\", "/");
|
||||||
var onlineData = "const onlineData = {};" + Environment.NewLine;
|
var onlineData = "const onlineData = {};" + Environment.NewLine;
|
||||||
foreach (var url in urlList)
|
foreach (var url in urlList)
|
||||||
|
|||||||
Binary file not shown.
BIN
min/bundle.zip
BIN
min/bundle.zip
Binary file not shown.
Loading…
Reference in New Issue
Block a user