mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
fix: 修复文件 Identity 不能反应文件位置变化的问题
This commit is contained in:
@@ -9,6 +9,7 @@ using MaaBuilder.Models;
|
||||
using Microsoft.Extensions.FileSystemGlobbing;
|
||||
using Nuke.Common;
|
||||
using Nuke.Common.IO;
|
||||
using Serilog;
|
||||
|
||||
namespace MaaBuilder;
|
||||
|
||||
@@ -34,7 +35,9 @@ public partial class Build
|
||||
var sourceDirectory = new DirectoryInfo(input);
|
||||
var allFiles = sourceDirectory.GetFiles("*.*", SearchOption.AllDirectories);
|
||||
var allHashes = allFiles
|
||||
.Select(x => FileSystemTasks.GetFileHash(x.FullName).ToUpperInvariant())
|
||||
.Select(x => FileSystemTasks.GetFileHash(x.FullName).ToUpperInvariant() +
|
||||
((AbsolutePath)x.FullName).GetUnixRelativePathTo(input))
|
||||
.Select(GetStringMd5)
|
||||
.OrderBy(x => x);
|
||||
var hashCombinedBuilder = new StringBuilder();
|
||||
foreach (var h in allHashes)
|
||||
|
||||
Reference in New Issue
Block a user