Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added build/msi/fibratus.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions build/msi/fibratus.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

<Media Id="1" Cabinet="fibratus.cab" EmbedCab="yes" />

<Icon Id="Fibratus.ico" SourceFile="fibratus.ico" />

<Property Id="ARPPRODUCTICON" Value="Fibratus.ico" />

<MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A later version of [ProductName] is already installed" AllowSameVersionUpgrades="yes" />

<UI Id="UI">
Expand Down
Binary file added cmd/fibratus/fibratus.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions cmd/fibratus/fibratus.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "version.h"
#define RT_MANIFEST 24

IDI_APP_ICON ICON "fibratus.ico"

#define VS_VERSION_INFO 1
VS_VERSION_INFO VERSIONINFO
FILEVERSION RC_FILE_VERSION
Expand Down
2 changes: 2 additions & 0 deletions cmd/systray/fibratus-systray.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "version.h"
#define RT_MANIFEST 24

IDI_APP_ICON ICON "fibratus.ico"

#define VS_VERSION_INFO 1
VS_VERSION_INFO VERSIONINFO
FILEVERSION RC_FILE_VERSION
Expand Down
Binary file added cmd/systray/fibratus.ico
Binary file not shown.
11 changes: 3 additions & 8 deletions cmd/systray/main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const (
)

var (
className = windows.StringToUTF16Ptr("fibratus")
className = windows.StringToUTF16Ptr("fibratus")
alertTitle = "Malicious Activity Detected"
)

// Msg represents the data exchanged between systray client/server.
Expand Down Expand Up @@ -221,13 +222,7 @@ func (s *Systray) handleMessage(m Msg) error {
logrus.Errorf("unable to decode alert: %v", err)
return err
}
text := alert.Text
// the balloon notification fails
// to show up if the text is empty
if text == "" {
text = " "
}
return s.systrayIcon.ShowBalloonNotification(alert.Title, text, s.config.Sound, s.config.QuietMode)
return s.systrayIcon.ShowBalloonNotification(alertTitle, alert.Title, s.config.Sound, s.config.QuietMode)
}
return nil
}
Expand Down
2 changes: 2 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ echo Copying artifacts...
:: Copy artifacts
copy /y ".\cmd\fibratus\fibratus.exe" "%RELEASE_DIR%\Bin"
copy /y ".\cmd\systray\fibratus-systray.exe" "%RELEASE_DIR%\Bin"
copy /y ".\cmd\fibratus\fibratus.ico" "%RELEASE_DIR%\Bin"
copy /y ".\configs\fibratus.yml" "%RELEASE_DIR%\Config\fibratus.yml"
copy /y ".\pkg\outputs\eventlog\mc\fibratus.dll" "%RELEASE_DIR%\fibratus.dll"

Expand Down Expand Up @@ -175,6 +176,7 @@ echo Copying artifacts...
:: Copy artifacts
copy /y ".\cmd\fibratus\fibratus.exe" "%RELEASE_DIR%\Bin"
copy /y ".\cmd\systray\fibratus-systray.exe" "%RELEASE_DIR%\Bin"
copy /y ".\cmd\fibratus\fibratus.ico" "%RELEASE_DIR%\Bin"
copy /y ".\configs\fibratus.yml" "%RELEASE_DIR%\Config\fibratus.yml"
copy /y ".\pkg\outputs\eventlog\mc\fibratus.dll" "%RELEASE_DIR%\fibratus.dll"

Expand Down
Loading