mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 00:27:26 +08:00
[+] Show alert in CI builds
This commit is contained in:
16
AquaMai/UX/CiBuildAlert.cs
Normal file
16
AquaMai/UX/CiBuildAlert.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using AquaMai.Helpers;
|
||||
using AquaMai.Resources;
|
||||
using HarmonyLib;
|
||||
using Process;
|
||||
|
||||
namespace AquaMai.UX;
|
||||
|
||||
public class CiBuildAlert
|
||||
{
|
||||
[HarmonyPatch(typeof(AdvertiseProcess), "OnStart")]
|
||||
[HarmonyPostfix]
|
||||
public static void OnStart(AdvertiseProcess __instance)
|
||||
{
|
||||
MessageHelper.ShowMessage(Locale.CiBuildAlertContent, title: Locale.CiBuildAlertTitle);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user