mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
22 lines
602 B
C#
22 lines
602 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
|
|
namespace BilibiliEvolved.Build
|
|
{
|
|
partial class ProjectBuilder
|
|
{
|
|
public ProjectBuilder BuildPreview()
|
|
{
|
|
var version = new Regex(@"//[ ]*@version[ ]*(.+)")
|
|
.Match(Source).Groups[1].Value.Trim();
|
|
Source = ownerRegex.Replace(Source, "${1}" + config.Owner + "${3}");
|
|
File.WriteAllText(SourcePath, Source);
|
|
File.WriteAllText("version.txt", version);
|
|
return this;
|
|
}
|
|
}
|
|
}
|