mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 04:47:21 +00:00
Took the architecture from the build target instead of metadata.txt (#1070)
This commit is contained in:
1 parent
db2cbaa71e
commit
940d214429
11 files changed
+37
-155
No files matched your search
@@ -251,7 +251,6 @@ public sealed partial class UpdateMetadataCommands
|
||||
var rid = Environment.GetCurrentRid();
|
||||
|
||||
Console.WriteLine("==============================");
|
||||
await this.UpdateArchitecture(rid);
|
||||
await this.UpdateTauriVersion();
|
||||
await this.UpdateVectorStoreVersion();
|
||||
|
||||
@@ -845,7 +844,7 @@ public sealed partial class UpdateMetadataCommands
|
||||
|
||||
private async Task<string> ReadPdfiumVersion()
|
||||
{
|
||||
const int PDFIUM_VERSION_INDEX = 10;
|
||||
const int PDFIUM_VERSION_INDEX = 9;
|
||||
|
||||
var pathMetadata = Environment.GetMetadataPath();
|
||||
var lines = await File.ReadAllLinesAsync(pathMetadata, Encoding.UTF8);
|
||||
@@ -855,19 +854,6 @@ public sealed partial class UpdateMetadataCommands
|
||||
return shortVersion;
|
||||
}
|
||||
|
||||
private async Task UpdateArchitecture(RID rid)
|
||||
{
|
||||
const int ARCHITECTURE_INDEX = 9;
|
||||
|
||||
var pathMetadata = Environment.GetMetadataPath();
|
||||
var lines = await File.ReadAllLinesAsync(pathMetadata, Encoding.UTF8);
|
||||
Console.Write($"- Updating architecture to {rid.ToUserFriendlyName()} ...");
|
||||
lines[ARCHITECTURE_INDEX] = rid.AsMicrosoftRid();
|
||||
|
||||
await WriteMetadataLinesAsync(pathMetadata, lines);
|
||||
Console.WriteLine(" done.");
|
||||
}
|
||||
|
||||
[Command("update-project-hash", Description = "Update the project commit hash")]
|
||||
public async Task UpdateProjectCommitHash()
|
||||
{
|
||||
@@ -1016,7 +1002,7 @@ public sealed partial class UpdateMetadataCommands
|
||||
|
||||
private async Task UpdateVectorStoreVersion()
|
||||
{
|
||||
const int VECTOR_STORE_VERSION_INDEX = 11;
|
||||
const int VECTOR_STORE_VERSION_INDEX = 10;
|
||||
|
||||
var pathMetadata = Environment.GetMetadataPath();
|
||||
var lines = await File.ReadAllLinesAsync(pathMetadata, Encoding.UTF8);
|
||||
|
||||
Reference in new issue
Block a user