用站点自带的图标(深红 #660611 的 "EH")重做应用图标,取代原来的 Wails 默认白底黑 W。 站点只提供 16x16 一个图标(apple-touch-icon / 多尺寸 favicon / webmanifest 全部 404,CSS 里也只有统计图标)。所幸这个字形完全由 水平垂直的矩形拼成、没有斜边,放大到 1024 边缘依然干净。 改动: - build/appicon.png 换成 1024x1024 的红底白字版 - build/windows/icon.ico 自己组装 16/24/32/48/64/128/256 七尺寸 (Wails 只会在 icon.ico 缺失时从 png 生成,且只生成单一 256x256) - 降采样用 box filter(区域平均),最近邻在 16 倍降采样时会丢 98% 像素 已从编译产物 exe 里用 ExtractAssociatedIcon 提取核对确认生效。
Build Directory
The build directory is used to house all the build files and assets for your application.
The structure is:
- bin - Output directory
- darwin - macOS specific files
- windows - Windows specific files
Mac
The darwin directory holds files specific to Mac builds.
These may be customised and used as part of the build. To return these files to the default state, simply delete them
and
build with wails build.
The directory contains the following files:
Info.plist- the main plist file used for Mac builds. It is used when building usingwails build.Info.dev.plist- same as the main plist file but used when building usingwails dev.
Windows
The windows directory contains the manifest and rc files used when building with wails build.
These may be customised for your application. To return these files to the default state, simply delete them and
build with wails build.
icon.ico- The icon used for the application. This is used when building usingwails build. If you wish to use a different icon, simply replace this file with your own. If it is missing, a newicon.icofile will be created using theappicon.pngfile in the build directory.installer/*- The files used to create the Windows installer. These are used when building usingwails build.info.json- Application details used for Windows builds. The data here will be used by the Windows installer, as well as the application itself (right click the exe -> properties -> details)wails.exe.manifest- The main application manifest file.