一键打包dmg格式文件

2020-08-14  本文已影响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
上一篇 下一篇

猜你喜欢

热点阅读