Fix wrong file generation

This commit is contained in:
the1812 2019-11-13 13:14:41 +08:00
parent 23f89eb30a
commit 97182b9aaf
3 changed files with 3 additions and 3 deletions

View File

@ -17,8 +17,8 @@ namespace BilibiliEvolved.Build
var module = File.ReadAllText("src/client/" + match.Groups[2].Value.Replace("./", "") + ".js").Replace("export ", ""); var module = File.ReadAllText("src/client/" + match.Groups[2].Value.Replace("./", "") + ".js").Replace("export ", "");
return module; return module;
}); });
File.WriteAllText(SourcePath, source); // File.WriteAllText(SourcePath, source);
Source = File.ReadAllText(SourcePath); Source = source;
WriteSuccess("Client Build complete."); WriteSuccess("Client Build complete.");
return this; return this;
} }

View File

@ -35,7 +35,7 @@ namespace BilibiliEvolved.Build
var version = new Regex(@"//[ ]*@version[ ]*(.+)").Match(Source).Groups[1].Value.Trim(); var version = new Regex(@"//[ ]*@version[ ]*(.+)").Match(Source).Groups[1].Value.Trim();
Source = ownerRegex Source = ownerRegex
.Replace(Source, "${1}" + config.Owner + "${3}"); .Replace(Source, "${1}" + config.Owner + "${3}");
File.WriteAllText(SourcePath, Source); // File.WriteAllText(SourcePath, Source);
File.WriteAllText("version.txt", version); File.WriteAllText("version.txt", version);
return this; return this;
} }

Binary file not shown.