GO语言打包ICO图标
1.
go get github.com/akavel/rsrc
2.
创建manifest文件, 命名:main.exe.manifest :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="x86"
name="controls"
type="win32"
></assemblyIdentity>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>
3. 生成syso文件
src_windows_amd64 -manifest main.exe.manifest -ico main.ico -o main.syso
4. 将生成的main.syso文件拷贝到main.go同级目录
5. 编译生成main.exe
go build -o main.exe Project/main
最终效果图:
最新文章
- HDFS副本存放策略
- linux档案与文件的的压缩与打包
- Unit Testing a zend-mvc application
- poj2104
- driver.startActivity 启动app出现 An unknown server-side error occurred while processing the command
- Android切换页面效果的实现二:WebView+ViewPager
- C语言中输入输出重定,freopen()妙用。
- 如何在RecyclerView上面实现";拖放";和";滑动删除";-1
- jq手风琴效果
- Groovy实现原理分析——准备工作
- Python3+Appium安装使用教程
- Ubuntu 16.04.2 配置VNC
- python算法双指针问题:二分查找
- [math][mathematica] mathematica入门
- Hibernate 再接触 基础配置 搭建Log4j环境 Junit日志环境等
- libgdx学习记录16——资源加载器AssetManager
- OneZero第三次站立会议(2016.3.23)
- PAT甲1038 Recover the smallest number
- EF生成的SQL语句执行顺序问题。
- 常见排序算法总结 -- java实现
热门文章
- 利用ST MCU内部的基准参考电压监测电源电压及其它
- HCNP学习笔记之ICMP协议与ping原理以及用Python实现ping
- Python3.x: pyodbc+FreeTDS+UinxODBC连接sybase数据库(Linux系统)
- js算法-快速排序(Quicksort)
- 并发-ThreadLocal源码分析
- 《大型网站系统与JAVA中间件实践》读书笔记-数据访问层
- AtCoder Regular Contest 097
- 5分钟理解Centos7防火墙firewalld
- EYES组——软件体系结构上机规划
- Android中获取并设置屏幕亮度