V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
watermelon11
V2EX  ›  程序员

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

  •  
  •   watermelon11 · 2020-08-26 17:10:59 +08:00 · 1750 次点击
    这是一个创建于 1310 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    8 条回复    2020-08-26 19:31:29 +08:00
    ysc3839
        1
    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
        2
    clf  
       2020-08-26 17:24:37 +08:00
    直接发邮件
    execute
        3
    execute  
       2020-08-26 17:30:39 +08:00
    watermelon11
        4
    watermelon11  
    OP
       2020-08-26 17:51:40 +08:00
    @ysc3839 谢谢,这个挺好的,稍微改一下就能完成我的需求了
    x66
        5
    x66  
       2020-08-26 17:54:20 +08:00   ❤️ 1
    from win10toast import ToastNotifier
    toaster = ToastNotifier()
    toaster.show_toast("Hello World!!!",
    "Python is 10 seconds awsm!",
    icon_path="custom.ico",
    duration=10)
    xomix
        6
    xomix  
       2020-08-26 18:00:42 +08:00
    Windows 内置消息通知序列,通过 api 你可用发送你想要的任何通知
    imn1
        7
    imn1  
       2020-08-26 18:07:42 +08:00
    powershell 就有,一年没写忘了
    zzk1989
        8
    zzk1989  
       2020-08-26 19:31:29 +08:00   ❤️ 2
    "Server 酱",推送到微信不是更方便吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5326 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:46 · PVG 13:46 · LAX 22:46 · JFK 01:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.