Ter*_*hov 7 macos iconutil icns
我正在尝试为应用程序创建一个iconset,但是当我创建它时继续出错: Hexchat.iconset:error: Failed to generate ICNS.
我尝试从Illustrator单独导出.png文件,以及使用脚本.使用1024x1024 png文件的当前脚本Hexchat_8.png:
mkdir Hexchat.iconset
sips -z 16 16 Hexchat_8.png --out Hexchat.iconset/hexchat_16x16.png
sips -z 32 32 Hexchat_8.png --out Hexchat.iconset/hexchat_16x16@2x.png
sips -z 32 32 Hexchat_8.png --out Hexchat.iconset/hexchat_32x32.png
sips -z 64 64 Hexchat_8.png --out Hexchat.iconset/hexchat_32x32@2x.png
sips -z 128 128 Hexchat_8.png --out Hexchat.iconset/hexchat_128x128.png
sips -z 256 256 Hexchat_8.png --out Hexchat.iconset/hexchat_128x128@2x.png
sips -z 256 256 Hexchat_8.png --out Hexchat.iconset/hexchat_256x256.png
sips -z 512 512 Hexchat_8.png --out Hexchat.iconset/hexchat_256x256@2x.png
sips -z 512 512 Hexchat_8.png --out Hexchat.iconset/hexchat_512x512.png
cp Hexchat_8.png Hexchat.iconset/hexchat_512x512@2x.png
iconutil -c icns Hexchat.iconset
rm -R Hexchat.iconset
Run Code Online (Sandbox Code Playgroud)
但是,每次它都是相同的,有或没有输出文件:
iconutil -c icns Hexchat.iconset
Hexchat.iconset:error: Failed to generate ICNS.
iconutil -c icns Hexchat.iconset -o hexchat.icns
Hexchat.iconset:error: Failed to generate ICNS.
Run Code Online (Sandbox Code Playgroud)
chmod'ing和/或sudo不起作用,并且手册页显示没有详细错误输出的选项.我究竟做错了什么?
将文件名更改hexchat_16x16.png为icon_16x16.png,以及所有其他大小的文件名相同.
我刚刚遇到了同样的错误,名字有些类似myappicon16x16.png,也无法理解为什么会失败.
我很乐意发现这一点,但在看到你的问题之后,我发现了这个StackOverflow的答案.