美文网首页
一键打包dmg格式文件

一键打包dmg格式文件

作者: 拥抱月亮的大星星 | 来源:发表于2020-08-14 16:00 被阅读0次

create-dmg

在几秒钟内为macOS应用程序创建一个好看的DMG

假设您完成了一个macOS应用程序,从Xcode中导出,现在想要分发给用户。在Mac应用程序商店之外发布应用程序最常见的方式是将其放在。dmg文件中。这些是很难创造的,尤其是漂亮的。

Install

Ensure you have Node.js 8 or later installed. Then run the following:

$ npm install --global create-dmg

Usage

$ create-dmg --help

  Usage
    $ create-dmg <app> [destination]

  Options
    --overwrite          Overwrite existing DMG with the same name
    --identity=<value>   Manually set code signing identity (automatic by default)
    --dmg-title=<value>  Manually set DMG title (must be <=27 characters) [default: App name]

  Examples
    jax-2:~ jax$ cd /Users/jax/Desktop/CreateDmg
    jax-2:CreateDmg jax$ create-dmg /Users/jax/Desktop/CreateDmg/扭力测试.app

结果如下

open the dmg file dmg icon

相关文章

网友评论

      本文标题:一键打包dmg格式文件

      本文链接:https://www.haomeiwen.com/subject/dsngdktx.html