请问 windows 平台下有类似的“通知程序”吗?

2020-08-26 17:10:59 +08:00
 watermelon11

项目在部署平台上编译部署时间比较久,一般都是切换去做别的事情,想有一个本地程序能配置 webhooks,接受持续集成平台的部署完成推送,程序收到推送后右下角弹出提示框。 大概需求就是如此,不知道 V 友们是否了解到有没有现成的可用?感谢~~~ 或者有没有别的替代方案可以及时收到部署完成的通知?(本身持续集成没有继承任何通知功能,只有 webconsole 中的日志提示,但是 webhooks 是有的)

1763 次点击
所在节点    程序员
8 条回复
ysc3839
2020-08-26 17:19:57 +08:00
Git for Windows 有带一个命令行工具 wintoast,可以通过命令行显示通知。
$ wintoast --help
WinToast Console Example [OPTIONS]
--action : Set the actions in buttons
--aumi : Set the App User Model Id
--appname : Set the default appname
--appid : Set the App Id
--expirems : Set the default expiration time
--text : Set the text for the notifications
--image : set the image path
--only-create-shortcut : create the shortcut for the app
--help : Print the help description
clf
2020-08-26 17:24:37 +08:00
直接发邮件
execute
2020-08-26 17:30:39 +08:00
watermelon11
2020-08-26 17:51:40 +08:00
@ysc3839 谢谢,这个挺好的,稍微改一下就能完成我的需求了
x66
2020-08-26 17:54:20 +08:00
from win10toast import ToastNotifier
toaster = ToastNotifier()
toaster.show_toast("Hello World!!!",
"Python is 10 seconds awsm!",
icon_path="custom.ico",
duration=10)
xomix
2020-08-26 18:00:42 +08:00
Windows 内置消息通知序列,通过 api 你可用发送你想要的任何通知
imn1
2020-08-26 18:07:42 +08:00
powershell 就有,一年没写忘了
zzk1989
2020-08-26 19:31:29 +08:00
"Server 酱",推送到微信不是更方便吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/701655

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX