有没有一种方法可以隐藏MACOS安装程序中的size列

时间:2020-06-16 15:08:00

标签: macos cpio xar

我们正在为MACOS产品创建扁平包装。到目前为止,我们的软件包尚无所需的磁盘大小。因此,我们要在安装程序中隐藏size列。反正有做吗?

我们的分发文件如下:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>packageName</title>
    <allowed-os-versions>
        <os-version min="10.6"/>
    </allowed-os-versions>
    <welcome language="en" mime-type="text/html">
        <![CDATA[<html><style>p   {font: 12px 'Lucida Grande'} li  {font: 12px 'Lucida Grande' }</style><body><br/><p>This package contains:</p><ul><li>Testflat_install.pkg</li><li>Testflat_uninstall.pkg</li></ul><br /><p>By default, you will be guided through the installation process.</p><p>To uninstall, please click customize at Installation Type and carry out the following steps</p><ul><li>Deselect the install package</li><li>Select the uninstall package</li></ul><br /><p>Please ensure to select only one package and not both.</p>]]>
    </welcome>
    <conclusion language="en" mime-type="text/html">
        <![CDATA[<html><body><br /><p style="margin: 0px; font: 13px 'Lucida Grande'">Package Install was Success</p></body></html>]]>
    </conclusion>
    <pkg-ref auth="root" id="com.abc.Enterprise.install">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref auth="root" id="com.abc.Enterprise.uninstall">
        <bundle-version/>
    </pkg-ref>
    <options customize="allow" require-scripts="false"/>
    <choices-outline>
        <line choice="com.abc.Enterprise.install"/>
        <line choice="com.abc.Enterprise.uninstall"/>
    </choices-outline>
    <choice id="com.abc.Enterprise.install" start_selected="true" title="Install " visible="true">
        <pkg-ref id="com.abc.Enterprise.install"/>
    </choice>
    <pkg-ref id="com.abc.Enterprise.install" installKBytes="0" onConclusion="none">#packageName_Install.pkg</pkg-ref>
    <choice id="com.abc.Enterprise.uninstall" start_selected="false" title="Uninstall " visible="true">
        <pkg-ref id="com.abc.Enterprise.uninstall"/>
    </choice>
    <pkg-ref id="com.abc.Enterprise.uninstall" installKBytes="0" onConclusion="none">#packageName_Uninstall.pkg</pkg-ref>
</installer-gui-script>

如何处理installKBytes属性?

this size column we want to hide so that there is no misleading information

我们要隐藏此尺寸列,以免产生误导性信息

0 个答案:

没有答案