[+] Show alert in CI builds

This commit is contained in:
Clansty
2024-11-06 11:39:54 +08:00
parent 99d7fe5ca2
commit 11beb6676e
7 changed files with 59 additions and 3 deletions

View 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);
}
}