mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 01:58:38 +00:00
Removed false alarms & the metadata.txt diff from the build script (#1066)
This commit is contained in:
1 parent
45c3500623
commit
da0c4e6bd9
3 files changed
+81
-22
No files matched your search
+10
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user