{"id":5257,"date":"2022-05-17T23:14:39","date_gmt":"2022-05-17T15:14:39","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5257"},"modified":"2022-05-17T23:14:39","modified_gmt":"2022-05-17T15:14:39","slug":"macos%e4%b8%8apkg%e5%ae%89%e8%a3%85%e5%8c%85%e7%9a%84%e5%88%b6%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5257.html","title":{"rendered":"macOS\u4e0apkg\u5b89\u88c5\u5305\u7684\u5236\u4f5c"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u524d\u6bb5\u65f6\u95f4\u6211\u8d1f\u8d23\u7684\u4e00\u4e2a\u7ec8\u7aef\u5e94\u7528\u63a8\u5e7f\u5728\u501f\u52a9MDM\u8fdb\u884c\u5206\u53d1\u7684\u65f6\u5019\u51fa\u4e86\u70b9\u95ee\u9898\uff08\u5177\u4f53\u60c5\u51b5\u662f\u5728\u4f4e\u4e8e\u6216\u7b49\u4e8e10.15.7\u7248\u672c\u7684macOS\u7cfb\u7edf\u4e0b\u53d1\u4e86\u4f46\u662f\u6ca1\u6709\u6b63\u5e38\u5b89\u88c5\uff09\uff0c\u63d0\u4f9b\u5e94\u7528\u5b89\u88c5\u5305\u7684\u540c\u5b66\u8bf4\u624b\u52a8\u5b89\u88c5\u6ca1\u95ee\u9898\u90a3\u80af\u5b9a\u4e0d\u662f\u5305\u7684\u95ee\u9898\uff0c\u8d1f\u8d23MDM\u5206\u53d1\u7684\u540c\u5b66\u8bf4\u5176\u5b83\u7684\u5b89\u88c5\u5305\u90fd\u53ef\u4ee5\u6b63\u5e38\u4e0b\u53d1\u80af\u5b9a\u4e5f\u4e0d\u662fMDM\u7684\u95ee\u9898\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4e3a\u4e86\u80fd\u8ba9\u5e94\u7528\u63a8\u5e7f\u6b63\u5e38\u8fdb\u884c\u4e0b\u53bb\uff0c\u6211\u53ea\u597d\u81ea\u5df1\u53bb\u5b66\u4e60\u548c\u5c1d\u8bd5\u89e3\u51b3\uff0c\u8fd9\u91cc\u7b80\u5355\u8bb0\u5f55\u4e00\u4e0bmacOS\u4e0apkg\u5b89\u88c5\u5305\u7684\u5236\u4f5c\u65b9\u6cd5\u548c\u6ce8\u610f\u4e8b\u9879\uff08\u7b49\u540e\u9762\u6709\u673a\u4f1a\u4e86\u6211\u518d\u6df1\u5165\u4e86\u89e3\u4e00\u4e0bMDM\u7684\u76f8\u5173\u77e5\u8bc6\uff09\uff0c\u65b9\u4fbf\u6709\u9700\u8981\u7684\u53c2\u8003\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<h6 class=\"wp-block-heading\">pkg\u5b89\u88c5\u5305\u662f\u4ec0\u4e48\uff1f<\/h6>\n\n\n\n<p><strong>pkg\u662fmacOS\u5e73\u53f0\u4e0b\u4e00\u79cd\u5e38\u89c1\u7684\u5b89\u88c5\u5305\u683c\u5f0f\uff08\u53e6\u4e00\u79cd\u5e38\u89c1\u7684\u662fdmg\u683c\u5f0f\uff09\u3002<\/strong>\u4e24\u8005\u7684\u7b80\u5355\u4ecb\u7ecd\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>dmg\u6587\u4ef6\uff08\u6216\u78c1\u76d8\u955c\u50cf\u6587\u4ef6\uff09\u7528\u4e8e\u5b89\u88c5\u8f6f\u4ef6\uff0c\u4f46\u5176\u4e2d\u53ef\u4ee5\u5305\u542b\u4efb\u610f\u7c7b\u578b\u7684\u6587\u4ef6\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u5e94\u7528\u7a0b\u5e8f\u6216\u5b89\u88c5\u6587\u4ef6\u3002\u8fd9\u79cd\u683c\u5f0f\u5e38\u89c1\u4e8e\u4ece\u4e92\u8054\u7f51\u4e0b\u8f7d\u7684macOS\u8f6f\u4ef6\u5b89\u88c5\u5305\uff0c\u6bd4\u5982\u5fae\u4fe1Mac\u7248\uff0c\u751a\u81f3\u662f\u5f85\u4f1a\u8981\u4ecb\u7ecd\u7684Packages\u8fd9\u4e2amacOS\u4e0a\u7684\u8f6f\u4ef6\u5b89\u88c5\u5305\u5236\u4f5c\u5de5\u5177\u672c\u8eab\u4e5f\u662f\u4ee5dmg\u683c\u5f0f\u63d0\u4f9b\u7684\u4e0b\u8f7d\u3002<\/p>\n\n\n\n<p>pkg\u6587\u4ef6\u662fmacOS\u5b89\u88c5\u5305\uff0c\u5305\u542b\u5b89\u88c5\u7a0b\u5e8f\u811a\u672c\u548c\u538b\u7f29\u7684\u5b89\u88c5\u6587\u4ef6\uff0c\u7528\u4e8e\u5728\u7528\u6237\u786c\u76d8\u4e0a\u5b89\u88c5Mac\u8f6f\u4ef6\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p><strong>\u867d\u7136\u5728\u4e92\u8054\u7f51\u4e0a\u5206\u53d1\u7684macOS\u5b89\u88c5\u7a0b\u5e8f\u4ee5dmg\u683c\u5f0f\u7684\u5c45\u591a\uff0c\u4f46\u662f\u5728\u4f01\u4e1a\u5185\u90e8\u63a8macOS\u5e94\u7528\u7684\u65f6\u5019\uff0c\u4e00\u822c\u662fpkg\u683c\u5f0f\u7684\u5c45\u591a<\/strong>\uff0c\u56e0\u4e3aDMG\u6587\u4ef6\u9700\u8981\u6302\u8f7d\u4e3a\u4e00\u4e2a\u865a\u62df\u78c1\u76d8\u6765\u63a8\u9001\u5e94\u7528\uff0c\u800cPKG\u6587\u4ef6\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\uff0c\u5e76\u4e14\u901a\u5e38\u5177\u5907\u4e00\u7cfb\u5217\u5b89\u88c5\u6d41\u7a0b\uff0c\u5f15\u5bfc\u7528\u6237\u5b8c\u6210\u5b89\u88c5\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">\u5982\u4f55\u5236\u4f5cpkg\u5b89\u88c5\u5305\uff1f<\/h6>\n\n\n\n<p>\u56e0\u4e3a\u6211\u662f\u65b0\u624b\uff0c\u540c\u65f6\u4e5f\u53ea\u662f\u4e3a\u4e86\u5feb\u901f\u5236\u4f5c\u4e00\u4e2apkg\u5b89\u88c5\u5305\u7528\u4e8e\u6d4b\u8bd5\u548c\u89e3\u51b3\u95ee\u9898\uff0c\u6240\u4ee5\u4f1a\u4ee5\u624b\u5934\u4e0a\u80fd\u627e\u5230\u7684\u6700\u7b80\u5355\u65b9\u4fbf\u7684\u6559\u7a0b\/\u5de5\u5177\u4e3a\u4e3b\u3002\u8fd9\u91cc\u7684\u6559\u7a0b\u662f\u300c<a href=\"https:\/\/mp.weixin.qq.com\/s\/rFfm1_oyZbd-4cVu6fvsaw\" target=\"_blank\" rel=\"noreferrer noopener\">\u3010\u6280\u672f\u5206\u4eab\u3011Mac\u73af\u5883PKG\u5b89\u88c5\u5305\u5236\u4f5c\u6559\u7a0b<\/a>\u300d\uff0c\u5de5\u5177\u662f\u300c<a href=\"http:\/\/s.sudre.free.fr\/Software\/Packages\/about.html\" target=\"_blank\" rel=\"noreferrer noopener\">Packages<\/a>\u300d\u3002<\/p>\n\n\n\n<p><strong>Packages\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u5b89\u88c5\u5305\u5236\u4f5c\u5de5\u5177\uff0c\u80fd\u591f\u6307\u5b9a\u6587\u4ef6\u7684\u5b89\u88c5\u8def\u5f84\u3001\u5b9a\u5236\u5b89\u88c5\u6d41\u7a0b\u3001\u8d44\u6e90\u56fd\u9645\u5316\u3001\u63d2\u4ef6\u673a\u5236\u3001\u6267\u884c\u5b89\u88c5\u811a\u672c\uff0c\u57fa\u672c\u80fd\u591f\u6ee1\u8db3\u7edd\u5927\u90e8\u5206\u573a\u666f\u3002<\/strong><\/p>\n\n\n\n<p>Packages\u7684\u4e0b\u8f7d\u548c\u5b89\u88c5\u5c31\u4e0d\u8d58\u8ff0\u4e86\uff0c\u6bd4\u8f83\u7b80\u5355\uff0c\u4e0b\u9762\u53ea\u4ecb\u7ecd\u4e00\u4e9b\u57fa\u672c\u7684\u4f7f\u7528\u548c\u7279\u5b9a\u7684\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u4e24\u79cd\u9879\u76ee\u6a21\u7248\u7684\u9009\u62e9\uff1a<\/li><\/ol>\n\n\n\n<p><strong>Distribution: A Distribution project can include multiple packages and allows you to have a welcome message, custom background picture, etc.<br><\/strong>Raw Package: A Raw Package project lets you install files at specific locations.<\/p>\n\n\n\n<p>\u7b80\u800c\u8a00\u4e4b\u5c31\u662f\uff0c\u5982\u679c\u5b89\u88c5\u5305\u8981\u5b9e\u73b0\u7684\u529f\u80fd\u8db3\u591f\u7b80\u5355\uff0c\u53ef\u4ee5\u9009\u62e9Raw Package\u6a21\u5f0f\uff0c\u53ef\u4ee5\u652f\u6301\u4f60\u5c06\u5b89\u88c5\u6587\u4ef6\u653e\u7f6e\u5230\u7279\u5b9a\u76ee\u5f55\u4e0b\u3002<strong>\u590d\u6742\u7684\u6216\u8005\u60f3\u5b9e\u73b0\u591a\u4e00\u70b9\u529f\u80fd\u7684\u5c31\u9009Distribution\u6a21\u5f0f\uff08\u652f\u6301\u81ea\u5b9a\u4e49\u80cc\u666f\u56fe\u7247\/\u6b22\u8fce\u4fe1\u606f\u7b49\u529f\u80fd\uff09\u3002<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>\u9879\u76ee\u540d\u79f0\u548c\u4f4d\u7f6e<\/li><\/ol>\n\n\n\n<p>\u201cProject Name\u201d\u4e3a\u9879\u76ee\u540d\u79f0\u53ef\u4efb\u610f\u586b\u5199\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\u6700\u597d\u5c06\u201cProject Directory\u201d\u9009\u5b9a\u4e3a\u5b89\u88c5\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u5426\u5219\u5bb9\u6613\u51fa\u73b0\u5b89\u88c5\u5305\u8fd0\u884c\u5931\u8d25\u7684\u73b0\u8c61\u2014\u2014\u5b9e\u6d4b\u53d1\u73b0\u4e3b\u8981\u548c\u76ee\u5f55\u6743\u9650\u6709\u5173\uff0c\u8fd9\u4e2a\u95ee\u9898\u5176\u5b9e\u4e0d\u5927\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Project\u7684\u51e0\u4e2a\u8bbe\u7f6e<\/li><\/ol>\n\n\n\n<p>Settings #\u53ef\u4ee5\u8bbe\u7f6e\u5b89\u88c5\u5305\u540d\uff08\u4e5f\u5373\u7f16\u8bd1\u51fa\u6765\u7684pkg\u6587\u4ef6\u540d\uff09\u3001\u5b89\u88c5\u5305\u8f93\u51fa\u4f4d\u7f6e\u3001\u5b89\u88c5\u5305\u683c\u5f0f\u7b49\u4fe1\u606f\u3002<br>Presentation #\u8bbe\u7f6e\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7684\u5448\u73b0\u6548\u679c\u3002\u6807\u51c6\u7684\u5b89\u88c5\u8fc7\u7a0b\u5206\u4e3a\uff1aIntroduction, Read Me, License, Destination Select, Installation Type, Installation, Summary\u4e03\u4e2a\u6b65\u9aa4\u3002\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u6b65\u9aa4\u5b9a\u5236\u6587\u672c\u4fe1\u606f\u5e76\u9009\u62e9\u56fd\u9645\u5316\u8bbe\u7f6e\u3002<br>Requirements &amp; Resources<br>Comments<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>\u5177\u4f53package\u7684\u8bbe\u7f6e<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Settings #\u8bbe\u5b9a\u6807\u8bc6\u7b26\/\u7248\u672c\u53f7\/\u5b89\u88c5\u5b8c\u6210\u7684\u52a8\u4f5c\uff08\u662f\u5426\u91cd\u542f\u7b49\uff09\/\u5b89\u88c5\u9009\u9879\uff08\u5b89\u88c5\u662f\u5426\u9700\u8981\u8f93\u5165\u5bc6\u7801\u7b49\uff09<\/strong><\/li><li><mark style=\"background-color:rgba(0, 0, 0, 0);color:#8a0c0c\" class=\"has-inline-color\">Payload #\u6307\u5b9a\u5b89\u88c5\u7684\u76ee\u6807\u76ee\u5f55\uff08<strong>\u9ed8\u8ba4\u662f\u6839\u76ee\u5f55\uff0c\u5982\u679c\u8981\u4fee\u6539\uff0c\u9009\u4e2d\u7279\u5b9a\u76ee\u5f55\u4e4b\u540e\u8981\u70b9\u51fbSet\u6309\u94ae\u624d\u884c\uff0c\u5bf9\u5e94\u76ee\u5f55\u56fe\u6807\u4e0a\u5c31\u4f1a\u51fa\u73b0\u4e00\u4e2a\u51c6\u661f\u56fe\u6807\uff0c\u8868\u793a\u6587\u4ef6\u5c06\u5b89\u88c5\u5230\u8fd9\u4e2a\u4f4d\u7f6e<\/strong>\uff09<\/mark><\/li><li><strong>Scripts #pre\/post\u5b89\u88c5\u524d\u540e\u7684\u6267\u884c\u811a\u672c\uff08\u5b89\u88c5\u524d\u7684\u811a\u672c\u4e00\u822c\u7528\u4e8e\u5173\u95ed\u6b63\u5728\u8fd0\u884c\u7684app\u8fdb\u7a0b\uff0c\u5220\u9664\u539f\u6765\u7684app\uff1b\u5b89\u88c5\u540e\u7684\u811a\u672c\u4e3b\u8981\u505a\u542f\u52a8app\u7684\u5de5\u4f5c\uff09<\/strong><\/li><\/ul>\n\n\n\n<p>\u5982\u4e0a\u6240\u6709\u64cd\u4f5c\u540e\u6253\u5305\u9009\u9879\u8bbe\u7f6e\u5b8c\u6210\u3002\u7136\u540e\u70b9\u51fb\u5de5\u5177\u680f\u7684Build\u6216\u8005Build and Run\u5f00\u59cb\u5236\u4f5cpkg\u5b89\u88c5\u5305\uff0c\u4e24\u8005\u7684\u533a\u522b\u662f\u524d\u8005\u53ea\u5236\u4f5cpkg\u5305\uff0c\u800c\u540e\u8005\u5236\u4f5c\u540e\u7acb\u5373\u8fd0\u884c\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\"><li>pkg\u5305\u5236\u4f5c\u597d\u4e4b\u540e\u7684\u6d4b\u8bd5<\/li><\/ol>\n\n\n\n<p><strong>\u7b2c\u4e00\u6b21\u5236\u4f5cpkg\u5b89\u88c5\u5305\u65f6\uff0c\u4f1a\u6709\u5f88\u591a\u5185\u5bb9\u4e0d\u6e05\u695a\uff0c\u8fd9\u65f6\u6700\u597d\u7684\u529e\u6cd5\u662f\u6bcf\u4e00\u6b65\u5177\u4f53\u7684\u64cd\u4f5c\u53c2\u8003\u539f\u6587\u5148\u641e\u4e00\u4e2a\u51fa\u6765\uff0c\u7136\u540e\u5bf9\u5236\u4f5c\u597d\u7684pkg\u5305\u8fdb\u884c\u5b89\u88c5\u6d4b\u8bd5\uff0c\u591a\u8bd5\u51e0\u6b21\u4f60\u5c31\u4f1a\u660e\u767d\u6bcf\u4e00\u6b65\u64cd\u4f5c\u90fd\u662f\u8d77\u4ec0\u4e48\u4f5c\u7528\u7684\uff0c\u54ea\u4e9b\u6b65\u9aa4\u6bd4\u8f83\u91cd\u8981\u4e0d\u80fd\u9a6c\u864e\uff0c\u54ea\u4e9b\u6b65\u9aa4\u4e0d\u91cd\u8981\u53ef\u4ee5\u4e0d\u7528\u5173\u6ce8\u3002<\/strong><\/p>\n\n\n\n<p>\u5b9e\u9645\u64cd\u4f5c\u4e00\u904d\u4e0b\u6765\u4e4b\u540e\u4f60\u5c31\u4f1a\u53d1\u73b0\u8fd9\u662f\u4e2a\u719f\u80fd\u751f\u5de7\u7684\u6d3b\uff0c\u6ca1\u6709\u592a\u591a\u7684\u6280\u672f\u542b\u91cf\uff08\u4f46\u662f\u7b2c\u4e00\u4e2a\u641e\u51fa\u8fd9\u4e2a\u7684\u4eba\u8fd8\u771f\u7684\u662f\u633a\u6709\u63a2\u7d22\u7cbe\u795e\u7684\uff09\u3002<\/p>\n\n\n\n<p>==<\/p>\n\n\n\n<p>\u51e0\u4e2a\u7b80\u5355\u5feb\u901f\u83b7\u53d6macOS\u786c\u4ef6\/\u73af\u5883\u4fe1\u606f\u7684\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>date\nhostname\nsystem_profiler SPHardwareDataType | grep -E \"Serial Number|Hardware UUID\"\nifconfig| grep 'inet ' | grep -v '127.0.0.1'\ncurl --connect-timeout 1 ifconfig.me<\/code><\/pre>\n\n\n\n<p>Scripts\u4e2d\u7684 pre-installation \u548c post-installation \u811a\u672c\u6837\u4f8b<\/p>\n\n\n\n<p>==> preInstall.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env bash\necho \"&#91;pre]start\" >>\/tmp\/pkg_install.txt\ndate >>\/tmp\/pkg_install.txt\nps aux | grep -i \"keyword\" | grep -v \"grep\" >>\/tmp\/pkg_install.txt\nif &#91;&#91; $? -eq 0 ]]; then\n\t#statements\n\techo \"&#91;pre]process already exist, do nothing!\" >>\/tmp\/pkg_install.txt\nelse\n\t#statements\n\t&#91; ! -f name11.pkg ] &amp;&amp; sudo installer -pkg .\/name11.pkg -target \/ &amp;&amp; echo \"&#91;pre]try to install!\" >>\/tmp\/pkg_install.txt\n\tcurl -I \"https:\/\/ixyzero.com\/preInstall\"\nfi\nls -lt \"\/Library\/Application Support\/DoPkgTest\/\" >>\/tmp\/pkg_install.txt 2>&amp;1\ndate >>\/tmp\/pkg_install.txt\necho \"&#91;pre]end\" >>\/tmp\/pkg_install.txt\nexit 0<\/code><\/pre>\n\n\n\n<p>==> postInstall.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env bash\necho \"&#91;post]start\" >>\/tmp\/pkg_install.txt\ndate >>\/tmp\/pkg_install.txt\nps aux | grep -i \"keyword\" | grep -v \"grep\" >>\/tmp\/pkg_install.txt\nif &#91;&#91; $? -eq 0 ]]; then\n\t#statements\n\techo \"&#91;post]process already exist, do nothing!\" >>\/tmp\/pkg_install.txt\nelse\n\t#statements\n\techo 'sudo installer -pkg \"\/Library\/Application Support\/DoPkgTest\/name11.pkg\" -target \/' >>\/tmp\/pkg_install.txt\n\tsudo installer -pkg \"\/Library\/Application Support\/DoPkgTest\/name11.pkg\" -target \/\n\thost=$(hostname)\n\tip=$(ifconfig | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}')\n\tsn=$(system_profiler SPHardwareDataType | grep \"Serial Number\" | awk '{print $NF}')\n\tcurl -I \"https:\/\/ixyzero.com\/host=$host&amp;ip=$ip&amp;sn=$sn\"\n\techo \"https:\/\/ixyzero.com\/host=$host&amp;ip=$ip&amp;sn=$sn\" >>\/tmp\/pkg_install.txt\nfi\ndate >>\/tmp\/pkg_install.txt\necho \"&#91;post]end\" >>\/tmp\/pkg_install.txt<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p><strong>\u3010\u6280\u672f\u5206\u4eab\u3011Mac\u73af\u5883PKG\u5b89\u88c5\u5305\u5236\u4f5c\u6559\u7a0b<\/strong><br><a href=\"https:\/\/mp.weixin.qq.com\/s\/rFfm1_oyZbd-4cVu6fvsaw\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/mp.weixin.qq.com\/s\/rFfm1_oyZbd-4cVu6fvsaw<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/s.sudre.free.fr\/Software\/Packages\/about.html\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/s.sudre.free.fr\/Software\/Packages\/about.html<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/s.sudre.free.fr\/Software\/documentation\/Packages\/en_2017\/index.html\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/s.sudre.free.fr\/Software\/documentation\/Packages\/en_2017\/index.html<\/a><\/p>\n\n\n\n<p>Open PKG File<br><a href=\"https:\/\/openpkgfile.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/openpkgfile.com\/<\/a><\/p>\n\n\n\n<p>Difference between .pkg and .dmg file?<br><a href=\"https:\/\/forums.macrumors.com\/threads\/difference-between-pkg-and-dmg-file.217052\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/forums.macrumors.com\/threads\/difference-between-pkg-and-dmg-file.217052\/<\/a><\/p>\n\n\n\n<p>Apple Mac OS X: Difference between APP and DMG<br><a href=\"https:\/\/www.askingbox.com\/question\/apple-mac-os-x-difference-between-app-and-dmg\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.askingbox.com\/question\/apple-mac-os-x-difference-between-app-and-dmg<\/a><\/p>\n\n\n\n<p>How to convert DMG to PKG Mac App for distribution<br><a href=\"https:\/\/www.hexnode.com\/mobile-device-management\/help\/convert-dmg-to-pkg-mac\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.hexnode.com\/mobile-device-management\/help\/convert-dmg-to-pkg-mac\/<\/a><\/p>\n\n\n\n<p>Why are so many Mac downloads a .dmg just that contains a single .pkg?<br><a href=\"https:\/\/apple.stackexchange.com\/questions\/30695\/why-are-so-many-mac-downloads-a-dmg-just-that-contains-a-single-pkg\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/apple.stackexchange.com\/questions\/30695\/why-are-so-many-mac-downloads-a-dmg-just-that-contains-a-single-pkg<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Apple_Disk_Image\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/en.wikipedia.org\/wiki\/Apple_Disk_Image<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Installer_(macOS)\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/en.wikipedia.org\/wiki\/Installer_(macOS)<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u524d\u6bb5\u65f6\u95f4\u6211\u8d1f\u8d23\u7684\u4e00\u4e2a\u7ec8\u7aef\u5e94\u7528\u63a8\u5e7f\u5728\u501f\u52a9MDM\u8fdb\u884c\u5206\u53d1\u7684\u65f6\u5019\u51fa\u4e86\u70b9\u95ee\u9898\uff08\u5177\u4f53\u60c5\u51b5\u662f\u5728\u4f4e\u4e8e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,560,12],"tags":[1816,1780,1817,1815],"class_list":["post-5257","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-mac","category-tools","tag-dmg","tag-macos","tag-packages","tag-pkg"],"views":5156,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5257"}],"version-history":[{"count":2,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5257\/revisions"}],"predecessor-version":[{"id":5259,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5257\/revisions\/5259"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}