Chromium Code Reviews| Index: tools/build.py |
| =================================================================== |
| --- tools/build.py (revision 35723) |
| +++ tools/build.py (working copy) |
| @@ -333,6 +333,23 @@ |
| else: |
| icon = 'dialog-error' |
| command = "notify-send -i '%s' '%s' '%s' &" % (icon, message, title) |
| + elif HOST_OS == 'win32': |
| + if success: |
| + icon = 'info' |
| + else: |
| + icon = 'error' |
| + command = ("powershell -command \"" |
|
ricow1
2014/05/14 05:43:47
where does the corresponding closing " appear, I d
aam-me
2014/05/14 11:27:46
Nice catch! Thank you.
Done.
|
| + "[reflection.assembly]::loadwithpartialname('System.Windows.Forms')" |
| + "| Out-Null;" |
| + "[reflection.assembly]::loadwithpartialname('System.Drawing')" |
| + "| Out-Null;" |
| + "$n = new-object system.windows.forms.notifyicon;" |
| + "$n.icon = [system.drawing.systemicons]::information;" |
| + "$n.visible = $true;" |
| + "$n.showballoontip(%d, '%s', '%s', " |
| + "[system.windows.forms.tooltipicon]::%s);") % ( |
| + 5000, # Notification stays on for this many milliseconds |
| + message, title, icon) |
| if command: |
| # Ignore return code, if this command fails, it doesn't matter. |