diff --git a/README.md b/README.md index 4c175b3..97217f5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,10 @@ This app uses Go's `embed` package to bundle all static files (web UI, icons, CS ### Prerequisites - [Go 1.16+](https://golang.org/dl/) (required for `embed`) - (Optional) [Python 3](https://www.python.org/) with Pillow for icon conversion - +```go +go mod init headeranalyzer +go mod tidy +``` ### 1. Prepare Icons - Place your tray icon and favicon in `web/icon.png` and `web/favicon.png`. - For Windows tray icon, you **must** use a `.ico` file. Use the provided script: diff --git a/main.go b/main.go index 377f2fc..3445b03 100644 --- a/main.go +++ b/main.go @@ -40,7 +40,7 @@ func onReady(addrPort string, shutdownCh chan struct{}) { if runtime.GOOS == "windows" { iconPath = "web/favicon.ico" } else { - iconPath = "web/favicon.png" + iconPath = "web/favicon.ico" } iconData, err := fs.ReadFile(embeddedFiles, iconPath) diff --git a/web/icon.png b/web/icon.png deleted file mode 100644 index cfe7a78..0000000 Binary files a/web/icon.png and /dev/null differ