在OSX下将许可证文件附加到dmg [英] attach license file to dmg under OSX

查看:76
本文介绍了在OSX下将许可证文件附加到dmg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们!我可以使用任何命令行将许可证文件附加到dmg吗?

guys! Is there any command line I can use to attach a license file to a dmg?

非常感谢您

(我在编辑器中遇到问题,如果您看到文字中的奇怪的东西",请原谅我)

(I'm experiencing problems with the editor, so forgive me if you see "strange things" in the text)

推荐答案

I found a blog entry for you (linked here) where the guy has written a python script which you can call, from the command line, to attach a Software License Agreements to a Disk Image file.

在10.6及以上版本上运行较新.

Works on 10.6 & newer.

根据他的原始博客条目:

According to his original blog entry:

此脚本在Python 2.6或2.7上运行.如果Rez的默认位置并且FlatCarbon标头在您的计算机上不同,您需要使用命令行选项--rez指定正确的位置和--flat-carbon.

This script runs on Python 2.6 or 2.7. If the default locations of Rez and the FlatCarbon headers are different on your machine, you’ll need to specify the correct location using the command line options --rez and --flat-carbon.

他的脚本(单击此链接查看)可以调用起来就像:

./licenseDMG.py <dmgFile> <licenseFile>

这篇关于在OSX下将许可证文件附加到dmg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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