{"id":3843,"date":"2023-04-28T15:51:54","date_gmt":"2023-04-28T07:51:54","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/?p=3843"},"modified":"2023-04-28T15:51:54","modified_gmt":"2023-04-28T07:51:54","slug":"app%e6%89%93%e5%8c%85dmg%e6%98%af%e4%bb%80%e4%b9%88%e6%84%8f%e6%80%9d%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/exekaifa\/3843.html","title":{"rendered":"app\u6253\u5305dmg\u662f\u4ec0\u4e48\u610f\u601d\uff1f"},"content":{"rendered":"<p>\u5728macOS\u7cfb\u7edf\u4e2d\uff0cdmg\uff08Disk Image\uff09\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u6587\u4ef6\u683c\u5f0f\uff0c\u7528\u4e8e\u5c06\u6587\u4ef6\u548c\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u5b89\u88c5\u7684\u6620\u50cf\u6587\u4ef6\u3002\u56e0\u6b64\uff0c\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210dmg\u683c\u5f0f\u662fmacOS\u5e94\u7528\u7a0b\u5e8f\u53d1\u5e03\u7684\u5e38\u89c1\u65b9\u5f0f\u4e4b\u4e00\u3002<\/p>\n<p>\u4e0b\u9762\u5c06\u4ecb\u7ecd\u5982\u4f55\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210dmg\u683c\u5f0f\u3002<\/p>\n<p>## \u6253\u5305dmg\u7684\u5de5\u5177<\/p>\n<p>\u5728macOS\u4e2d\uff0c\u7cfb\u7edf\u81ea\u5e26\u4e86hdiutil\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u3001\u6302\u8f7d\u3001\u5378\u8f7d\u548c\u64cd\u4f5cdmg\u6587\u4ef6\u3002\u6b64\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u7684\u56fe\u5f62\u5316\u5de5\u5177\uff0c\u5982DropDMG\u3001DMG Canvas\u7b49\uff0c\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u521b\u5efa\u548c\u7f16\u8f91dmg\u6587\u4ef6\u3002<\/p>\n<p>## \u6253\u5305dmg\u7684\u6b65\u9aa4<\/p>\n<p>\u4ee5\u4e0b\u662f\u4f7f\u7528hdiutil\u547d\u4ee4\u884c\u5de5\u5177\u6253\u5305dmg\u7684\u6b65\u9aa4\uff1a<\/p>\n<p>1. \u521b\u5efa\u4e00\u4e2a\u7a7a\u7684dmg\u6587\u4ef6<\/p>\n<p>&#8220;`<\/p>\n<p>hdiutil create -volname &#8220;MyApp&#8221; -srcfolder \/Applications\/MyApp.app -ov -format UDZO MyApp.dmg<\/p>\n<p>&#8220;`<\/p>\n<p>\u4e0a\u8ff0\u547d\u4ee4\u4e2d\uff0c-volname\u6307\u5b9a\u4e86dmg\u7684\u540d\u79f0\uff0c-<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/21\/14\/10039426769.jpg\" \/><\/figure>\n<\/p>\n<p>srcfolder\u6307\u5b9a\u4e86\u8981\u6253\u5305\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u8def\u5f84\uff0c-ov\u8868\u793a\u8986\u76d6\u5df2\u6709\u7684dmg\u6587\u4ef6\uff0c-format\u9009\u62e9\u4e86UDZO\u683c\u5f0f\uff0c\u8be5\u683c\u5f0f\u53ef\u4ee5\u538b\u7f29\u6587\u4ef6\uff0c\u51cf\u5c0fdmg\u6587\u4ef6\u7684\u5927\u5c0f\u3002<\/p>\n<p>2. \u6302\u8f7ddmg\u6587\u4ef6<\/p>\n<p>&#8220;`<\/p>\n<p>hdiutil attach MyApp.dmg<\/p>\n<p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4\u5c06dmg\u6587\u4ef6\u6302\u8f7d\u5230\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u5728Finder\u4e2d\u770b\u5230\u4e00\u4e2a\u540d\u4e3aMyApp\u7684\u865a\u62df\u78c1\u76d8\u3002<\/p>\n<p>3. \u5c06\u5e94\u7528\u7a0b\u5e8f\u590d\u5236\u5230dmg\u6587\u4ef6\u4e2d<\/p>\n<p>&#8220;`<\/p>\n<p>cp -R \/Applications\/MyApp.app \/Volumes\/MyApp\/<\/p>\n<p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4\u5c06\u5e94\u7528\u7a0b\u5e8f\u590d\u5236\u5230dmg\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>4. \u5378\u8f7ddmg\u6587\u4ef6<\/p>\n<p>&#8220;`<\/p>\n<p>hdiutil detach \/Volumes\/MyApp\/<\/p>\n<p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4\u5c06\u5378\u8f7ddmg\u6587\u4ef6\uff0c\u5c06MyApp\u865a\u62df\u78c1\u76d8\u4ece\u7cfb\u7edf\u4e2d\u79fb\u9664\u3002<\/p>\n<p>5. \u538b\u7f29dmg\u6587\u4ef6<\/p>\n<p>&#8220;`<\/p>\n<p>hdiutil convert MyApp.dmg -format UDZO -o MyApp_compressed.dmg<\/p>\n<p>&#8220;`<\/p>\n<p>\u8be5\u547d\u4ee4<a href=\"https:\/\/exe.yimenapp.com\/tool-2145.html\">\u5982\u4f55\u6253\u5305\u5e94\u7528\u8f6f\u4ef6<\/a>\u5c06dmg\u6587\u4ef6\u538b\u7f29\u6210UDZO\u683c\u5f0f\uff0c\u5e76\u5c06\u538b\u7f29\u540e\u7684\u6587\u4ef6\u4fdd\u5b58\u4e3aMyApp_compressed.dmg\u3002<\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210dmg\u683c\u5f0f\u4e86\u3002<\/p>\n<p>## \u6253\u5305dmg\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<p>1. \u5e94\u7528\u7a0b\u5e8f\u5fc5\u987b\u662f\u53ef\u6267\u884c\u7684\uff0c\u5373\u53ef\u4ee5\u5728macOS\u7cfb\u7edf\u4e2d\u8fd0\u884c\u3002<\/p>\n<p>2. \u5e94\u7528\u7a0b\u5e8f\u7684\u6587\u4ef6\u540d\u4e0d\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26\uff0c\u5982\u7a7a\u683c\u3001\u5192\u53f7\u7b49\u3002<\/p>\n<p>3. \u5e94\u7528\u7a0b\u5e8f\u7684\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7dmg\u6587\u4ef6\u7684\u5927\u5c0f\u9650\u5236\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\uff0cdmg\u6587\u4ef6\u7684\u5927\u5c0f\u4e0d\u5e94\u8d85\u8fc74GB<a href=\"https:\/\/exe.yimenapp.com\/tool-508.html\">\u5236\u4f5c\u8f6f\u4ef6\u7684\u8f6f\u4ef6<\/a>\u3002<\/p>\n<p>4. \u5728\u590d\u5236\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u65f6\uff0c\u5fc5\u987b\u4fdd\u8bc1\u6587\u4ef6\u7684\u6743\u9650\u548c\u5c5e\u6027\u4e0e\u539f\u6587\u4ef6\u4e00\u81f4\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5e94\u7528\u7a0b\u5e8f\u65e0\u6cd5\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p>5. \u5728\u538b\u7f29dmg\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u538b\u7f29\u683c\u5f0f\uff0cUDZO\u683c\u5f0f\u53ef\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u538b\u7f29\u6548\u679c\uff0c\u4f46\u4f1a\u589e\u52a0\u538b\u7f29\u65f6\u95f4\u3002<\/p>\n<p>\u603b\u4e4b\uff0c\u6253\u5305dmg\u662f\u5728macOS\u7cfb\u7edf\u4e2d\u53d1\u5e03\u5e94\u7528\u7a0b\u5e8f\u7684\u5e38\u89c1\u65b9\u5f0f\u4e4b\u4e00\uff0c\u901a\u8fc7\u4e86\u89e3\u6253\u5305dmg\u7684\u6b65\u9aa4\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u53d1\u5e03\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728macOS\u7cfb\u7edf\u4e2d\uff0cdmg\uff08Disk Image\uff09\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u6587\u4ef6\u683c\u5f0f\uff0c\u7528\u4e8e\u5c06\u6587\u4ef6\u548c\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u5b89\u88c5\u7684\u6620\u50cf\u6587\u4ef6\u3002\u56e0\u6b64\uff0c\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210dmg\u683c\u5f0f\u662fmacOS\u5e94\u7528\u7a0b\u5e8f\u53d1\u5e03\u7684\u5e38\u89c1\u65b9\u5f0f\u4e4b\u4e00\u3002\u4e0b\u9762\u5c06<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[4748,1775,802,2677,4747],"class_list":["post-3843","post","type-post","status-publish","format-standard","hentry","category-exekaifa","tag-php","tag-1775","tag-802","tag-2677","tag-exe"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/3843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=3843"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/3843\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=3843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=3843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=3843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}