如何在没有wine的情况下在linux中更改windows exe文件的图标? [英] How to change windows exe file's icon in linux without wine?
问题描述
我知道我可以使用 ResHacker 从 Windows 更改资源,我知道我可以使用 <一个 href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms648049%28v=vs.85%29.aspx" rel="nofollow">ResourceUpdate 函数要做同样有问题(再次在 Windows 中).我的问题是我必须在linux中更新windows exe文件的图标,而不使用wine.
I know I can use ResHacker to change a resource from windows and I know I can use ResourceUpdate function to do the same problematically (again in windows). My problem is that I have to update the icon of a windows exe file in linux, without using wine.
(不使用 wine 的原因是这个过程应该在一个自动化服务器上运行,该服务器会更改文件并对其进行签名).
(the reason for not using wine is that this process should run on an automation server that change the files and sign them).
我什至不知道从哪里开始.
I don't know even where to start from.
推荐答案
有一个程序叫做 windres 应该适合您的需求
There's a program called windres that should suit your needs
糟糕,这只是一个资源编译器,抱歉.
Whoops, that's just a resource compiler, sorry.
但是有 pefile 一个用于处理 PE 可执行文件的 python 模块,也许您可以编写一个可以做你想做的脚本
However there is pefile a python module for working with PE executables, perhaps you could write a script with it that does what you want
这篇关于如何在没有wine的情况下在linux中更改windows exe文件的图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!