Files
SMANAGE/_toast.ps1
T
TermiNexus 0367165072 chore: 更新完成提示脚本文案
toast 临时脚本:同步本次任务标题与提交号。
2026-10-01 16:27:51 +08:00

11 lines
907 B
PowerShell

$ErrorActionPreference = 'SilentlyContinue'
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
$t = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02)
$n = $t.GetElementsByTagName('text')
$n.Item(0).AppendChild($t.CreateTextNode('修复"空草稿"误判:只看用户可填列')) | Out-Null
$n.Item(1).AppendChild($t.CreateTextNode('GERP 已部署(7886651);隐藏列/时间戳变化不再产生草稿,旧空草稿会被自动清掉')) | Out-Null
$toast = [Windows.UI.Notifications.ToastNotification]::new($t)
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier('TraeCode Agent').Show($toast)
Write-Output 'toast-ok'