Removed false alarms & the metadata.txt diff from the build script (#1066)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-15 19:34:14 +02:00
1 parent 45c3500623
commit da0c4e6bd9
3 files changed
+81 -22

No files matched your search

+10 -2
View File
@@ -36,8 +36,16 @@ fn main() {
let metadata = include_str!("../metadata.txt");
let mut metadata_lines = metadata.lines().collect::<Vec<_>>();
metadata_lines[9] = rid;
let new_metadata = metadata_lines.join("\n");
std::fs::write("../metadata.txt", new_metadata).unwrap();
// Every line ends with a line break, the last one included. The build
// script of the .NET side writes the file the same way:
let mut new_metadata = metadata_lines.join("\n");
new_metadata.push('\n');
// Write only on a change to avoid unnecessary rewrites:
if new_metadata != metadata {
std::fs::write("../metadata.txt", new_metadata).unwrap();
}
//
// Read the current version and update the