Files
luban-lite-t3e-pro/packages/third-party/awtk-ui/awtk/win32_res/README.md
刘可亮 3b4064f334 v1.0.2
2023-11-30 19:48:02 +08:00

25 lines
775 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AWTK 应用程序在 Windows 下的图标资源
如果需要修改应用程序的图标,有两种方法:
1. 用 VC 创建的 .res 文件代替 awtk.res
2. 用 [ResEdit](http://rsdt.free.fr/ResEdit-x64.7z) 直接编辑 awtk.res 文件。
## 生成兼容 mingw 的 res
1. awtk.rc 转为 utf8或者 utf8 with BOM 的编码。
2. 注释 rc 文件中的 #include "targetver.h" 代码
3. windres 工具重新导出 res 文件。windres 是 mingw 提供的 exe
```bash
windres awtk.rc -O coff awtk.res
```
## 生成兼容 mingw 的 x86 格式 res
步骤与上一小节一致,但最后使用 windres 工具导出 res 文件时,需要加上 `--target=pe-i386` 参数,命令如下:
```bash
windres awtk.rc -O coff awtk_x86.res --target=pe-i386
```