使用hdiutil或其他工具将背景图像/颜色添加到DMG? [英] Add background image/color to DMG using hdiutil or other tool?

查看:149
本文介绍了使用hdiutil或其他工具将背景图像/颜色添加到DMG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何使用命令行工具为Mac OS X创建美观的DMG?

Possible Duplicate:
How do I create a nice-looking DMG for Mac OS X using command-line tools?

似乎正在使用Finder UX或某种UI工具(

It seems like using Finder UX or some sort of UI tool (Create drag-drop graphic when installing OS X application from dmg) the only way to customize how a DMG looks when opened up. That doesn't scale too well and isn't automatable enough.

除了在Mac上使用hdiutil或在Linux上使用mkfs.hfsplus之类的工具外,有人知道实现相同目的的方法吗?

Anyone know of way to achieve the same thing but using tools such as hdiutil on Mac or mkfs.hfsplus on Linux?

推荐答案

OS X Finder在名为.DS_Store的隐藏文件中存储有关窗口大小,类型,位置,背景图像和图标排列(按目录)的数据.如果您遵循另一个问题的总体思路,则应该能够将结果磁盘映像中的.DS_Store文件复制到由部署脚本生成的新映像中.

The OS X Finder stores data about the window size, type, position, background image and icon arrangement (per directory) in a hidden file called .DS_Store. If you follow the general idea from the other question, you should then be able to copy the .DS_Store file from the resulting disk image into new images generated by a deployment script.

这篇关于使用hdiutil或其他工具将背景图像/颜色添加到DMG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆