mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
29 lines
637 B
C#
29 lines
637 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Concurrent;
|
|
using System.IO;
|
|
using System.Security.Cryptography;
|
|
using System.Text;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BilibiliEvolved.Build.Watcher
|
|
{
|
|
public class ClientWatcher : Watcher
|
|
{
|
|
public ClientWatcher() : base($"src{Path.DirectorySeparatorChar}client")
|
|
{
|
|
GenericFilter = "*.js";
|
|
}
|
|
|
|
protected override void OnFileChanged(FileSystemEventArgs e)
|
|
{
|
|
builder.WriteInfo($"[Client] {e.Name} changed.");
|
|
builder
|
|
.BuildClient()
|
|
.BuildVersions()
|
|
.BuildMaster();
|
|
}
|
|
}
|
|
}
|