V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
watermelon11
V2EX  ›  程序员

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

  •  
  •   watermelon11 · Aug 26, 2020 · 2416 views
    This topic created in 2081 days ago, the information mentioned may be changed or developed.

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

    8 replies    2020-08-26 19:31:29 +08:00
    ysc3839
        1
    ysc3839  
       Aug 26, 2020
    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  
       Aug 26, 2020
    直接发邮件
    execute
        3
    execute  
       Aug 26, 2020
    watermelon11
        4
    watermelon11  
    OP
       Aug 26, 2020
    @ysc3839 谢谢,这个挺好的,稍微改一下就能完成我的需求了
    x66
        5
    x66  
       Aug 26, 2020   ❤️ 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  
       Aug 26, 2020
    Windows 内置消息通知序列,通过 api 你可用发送你想要的任何通知
    imn1
        7
    imn1  
       Aug 26, 2020
    powershell 就有,一年没写忘了
    zzk1989
        8
    zzk1989  
       Aug 26, 2020   ❤️ 2
    "Server 酱",推送到微信不是更方便吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3367 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 14:04 · PVG 22:04 · LAX 07:04 · JFK 10:04
    ♥ Do have faith in what you're doing.