问题标签 [dmg]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2559 浏览

macos - 如何在 Mac 上创建 .dmg 文件(python 源代码 + 包)?

希望可以有人帮帮我。我编写了一个 pyqt4 程序。那就是使用很多包,例如 Qt4、HDF5、qimage2ndarray 和、and、and。现在我想创建一个 .dmg 文件,其中包含运行该程序所需的一切。如果你有一个全新安装的 Mac OS X,你只需要运行这个 .dmg 并且你已经安装了你需要的所有东西。我怎样才能在 Mac 上做到这一点?询问谷歌,我得到了很多创建 .dmg 文件的方法,但仅限于文件夹或 .app。但我需要这些包裹。那我该怎么做呢?将不胜感激任何帮助。

0 投票
1 回答
370 浏览

apache-flex - 如何使用actionscript在mac中卸载图像?

我正在 Flex 中开发一个 AIR 应用程序。这涉及使用 .dmg 文件安装图像。完成工作后,程序必须卸载它。

通过将 dmg 文件的路径作为参数传递,我可以使用 DiskImageMounter 实用程序挂载 .dmg。我想知道如何以编程方式卸载图像。请帮忙..

谢谢!!

0 投票
1 回答
1228 浏览

macos - 安装后扩展坞中的 OSX 应用程序快捷方式文件夹和图标更新

这是设置:我在 Dock 中有 Applications 文件夹,这是安装 (Snow Leopard) afaik 后的默认设置。

现在我有一个自定义构建 DMG,其中有一个应用程序,我将其拖放到 Application 文件夹中。当我从 Dock 打开应用程序文件夹并查找新安装的应用程序时,它没有应有的应用程序图标 - 实际上它确实显示了默认图标(铅笔/纸),其中有一个圆圈和一条线。

在通过 Finder 打开的应用程序文件夹中,几秒钟后会显示图标。

该应用程序也是自定义构建的。它使用 info.plist 指定要使用的图标文件 - 称为 cc.icns,位于 Contents/Resources 文件夹中。

我认为这可能是图标缓存的问题,可以通过注销/登录来解决——这是我不想要的解决方案。Afaik 有一些应用程序没有这个问题。(正确错误?)

对此有何建议?

编辑:这是欺骗https://apple.stackexchange.com/q/5161/2123 - 但我觉得这个论坛可能有更多技术解决方案;)

0 投票
1 回答
772 浏览

macos - 如何将 Mac OS X 10.6.6 更新添加到我的 Mac OS X 10.6.3 dmg

我想制作一个已包含 10.6.6 更新的可启动 dmg。当我安装操作系统时将是 10.6.6。欢迎任何建议。

0 投票
1 回答
216 浏览

macos - 在 OS X 上从源代码构建与从磁盘映像安装的优缺点是什么?

从源代码安装PythonGit之类的东西而不是简单地在 OS X 上使用社区提供的磁盘映像有什么优点和缺点?

Dan Benjamin 有一篇关于“使用 /usr/local”的文章。但是,鉴于Git DMG 安装到/usr/local/git并且Python DMG 安装为框架,我不确定在这些情况下,Dan 列出的从源代码构建的优势是否仍然无法通过 DMG 安装获得。

显然,使用磁盘映像的一个优点是它更简单。但是,它们是否值得从源代码构建?

0 投票
4 回答
7277 浏览

macos - 如何制作下载后自动打开的 dmg 安装程序?

我见过一些 dmg,它不仅会在下载后挂载,而且还会将安装程序复制到下载文件夹中,然后在 Installer Application 中打开安装程序。

我不知道该怎么做?

任何人都可以帮忙吗?

0 投票
1 回答
4968 浏览

windows - How to update a DMG file from Windows

Just like Peter who looked for a solution to automate the creation of an ISO file, I am looking for a solution which would allow me to update the contents of a compressed DMG file, originally created on a Mac.

I am aware of several tools which allow me to open a DMG file under Windows (for instance 7-Zip or TransMac), but they don't seem to be able to update the contents of a compressed DMG file. And moreover, I really need to be able to do this from my build scripts, which have to run on Windows.

Note: I've read Michele's question (How to build a DMG Mac OS X file on a non-Mac platform) but this does not solve the updating of a compressed DMG file.

How could I fully automate my build?

If I cannot handle this on Windows, is there maybe some way to script this on a Mac, and then remotely launch the script from a Windows machine, in order to update the DMG directly on the Mac without human intervention? Running the build server on VMware or Parallels, inside a Mac, is possible for me, if this eases the remoting part...

0 投票
2 回答
6118 浏览

macos - Mac OS X 磁盘映像验证

有谁知道 Mac OS X 验证磁盘映像 (.dmg) 文件时幕后究竟发生了什么?有什么方法可以扩展或定制程序吗?

编辑:我想创建一个磁盘映像,以验证它是否完全按照它应该做的那样做,仅此而已。例如,如果我分发了一些管理密码的软件,恶意用户可能会修改我的包,将密码发送给无根据的第三方。对于最终用户来说,功能似乎与我的程序相同,他们永远不会知道包被破坏了。我想在安装时执行此验证。

0 投票
2 回答
1297 浏览

macos - How do I create a nice-looking DMG for Mac OS X with a localized background?

I have read the discussion on how to create a DMG for Mac OS X using command-line tools and now I would like to go further: can I possibly produce a DMG which displays a different background image, based on the active language of the system?

I know there are tricks to display different folder names based on the active locale; but can this be extended to different backgrounds? It would be a pity to have to produce and distribute one DMG for every language our product supports, just to have a different background image.

Here are two background images I would like to use, in English:

Install Crésus (English version)

or in French:

Install Crésus (French version)

0 投票
1 回答
3852 浏览

xcode - 在 Xcode 4.0 中自动构建 DMG

我刚刚更新到 Xcode 4.0.2 并且我有一个项目,它构建一个 DMG 文件作为最终构建阶段的一部分。这在 Xcode 3.2.x 中效果很好,但在 Xcode 4 中被破坏了,因为它在构建到存档时构建发布版本的方式。有没有办法让 Xcode 4 像 Xcode 3.2 一样将发布版本构建到 Release 文件夹中,这样我就可以自动化 DMG 构建?

谢谢,J