<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Archives on Jingyuan</title>
        <link>https://jingyuan-zheng.github.io/tags/archives/</link>
        <description>Recent content in Archives on Jingyuan</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-US</language>
        <copyright>Jingyuan Zheng</copyright>
        <lastBuildDate>Fri, 14 Aug 2026 12:00:00 +0200</lastBuildDate><atom:link href="https://jingyuan-zheng.github.io/tags/archives/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>How to Preview Archives and Disk Images in Finder: Archive Peek for ZIP, DMG, and ISO</title>
            <link>https://jingyuan-zheng.github.io/p/archive-peek-macos-quick-look/</link>
            <pubDate>Fri, 14 Aug 2026 12:00:00 +0200</pubDate>
            <guid>https://jingyuan-zheng.github.io/p/archive-peek-macos-quick-look/</guid>
            <description>&lt;img src=&#34;https://jingyuan-zheng.github.io/img/archive-peek/featured.png&#34; alt=&#34;Featured image of post How to Preview Archives and Disk Images in Finder: Archive Peek for ZIP, DMG, and ISO&#34; /&gt;&lt;p&gt;This post introduces &lt;strong&gt;Archive Peek&lt;/strong&gt;, my open-source macOS Quick Look extension for looking inside archives, software installers, and disk images directly from Finder.&lt;/p&gt;&#xA;&lt;h2 id=&#34;press-space-instead-of-extracting-or-mounting&#34;&gt;Press Space Instead of Extracting or Mounting&#xA;&lt;/h2&gt;&lt;p&gt;The idea is simple: select a supported file in Finder, press the Space bar, and browse its contents before deciding what to do with it.&lt;/p&gt;&#xA;&lt;p&gt;Archive Peek keeps the original file read-only. It does not mount disk images, unpack archives into folders, create temporary raw images, or upload anything. This is useful when you only want to answer a quick question: What is inside this download? Is it the installer I expected? Does this old image contain the file I need?&lt;/p&gt;&#xA;&lt;div class=&#34;post-figure&#34;&gt;&#xA;    &lt;img src=&#34;https://jingyuan-zheng.github.io/img/archive-peek/archive-browser.png&#34; alt=&#34;Archive Peek displaying an archive as a Finder-like file list&#34;&gt;&#xA;    &lt;div class=&#34;caption&#34;&gt;Figure 1: Archives and ordinary disk images use a familiar Finder-like list.&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;a-better-preview-for-mac-installers&#34;&gt;A Better Preview for Mac Installers&#xA;&lt;/h2&gt;&lt;p&gt;Many DMG and ZIP downloads are not general-purpose archives. They contain one app, package, or macOS dictionary and sometimes a shortcut showing where it should be installed.&lt;/p&gt;&#xA;&lt;p&gt;Archive Peek recognizes these common installer shapes. Instead of making you search through the full file tree, it presents the app icon, name, version, bundle identifier, minimum macOS version, size, modification date, and installation destination when that information is available.&lt;/p&gt;&#xA;&lt;p&gt;The same installer view can appear whether the app is inside a DMG, ISO, ZIP, 7Z, or another supported container. The decision is based on the contents, not just the outer filename.&lt;/p&gt;&#xA;&lt;div class=&#34;post-figure&#34;&gt;&#xA;    &lt;img src=&#34;https://jingyuan-zheng.github.io/img/archive-peek/installer-preview.png&#34; alt=&#34;Archive Peek smart installer preview with an app icon and application details&#34;&gt;&#xA;    &lt;div class=&#34;caption&#34;&gt;Figure 2: When Archive Peek finds an app or installer, it highlights the useful details.&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;archives-disk-images-and-nested-containers&#34;&gt;Archives, Disk Images, and Nested Containers&#xA;&lt;/h2&gt;&lt;p&gt;Archive Peek covers common archives such as ZIP, 7Z, RAR/RAR5, TAR, GZIP, BZIP2, XZ, and Zstandard. It also understands DMG, ISO, CDR, IMG/RAW, virtual-disk formats such as VHD, VMDK, VDI, and QCOW, and the file systems commonly found inside them.&lt;/p&gt;&#xA;&lt;p&gt;Real files are often layered. An ISO may contain an HFS image; a compressed archive may contain another archive or disk image. Archive Peek follows common nested structures automatically, with a bounded depth, and leaves multiple valid child images visible as folders instead of guessing which one you wanted.&lt;/p&gt;&#xA;&lt;p&gt;Not every file with a supported extension is guaranteed to open: damaged data, unusual encryption, or an unsupported internal variant can still prevent a preview. The app reports that cleanly and does not fall back to mounting the file.&lt;/p&gt;&#xA;&lt;h2 id=&#34;password-protected-zip-and-7z-files&#34;&gt;Password-Protected ZIP and 7Z Files&#xA;&lt;/h2&gt;&lt;p&gt;Encrypted ZIP and 7Z files use a native macOS password dialog. After a correct password is entered, the archive opens in the same file browser or installer view. The password stays in memory only for that preview session and is never saved or copied to the clipboard.&lt;/p&gt;&#xA;&lt;div class=&#34;post-figure&#34;&gt;&#xA;    &lt;img src=&#34;https://jingyuan-zheng.github.io/img/archive-peek/password-prompt.png&#34; alt=&#34;Archive Peek native password dialog for an encrypted archive&#34;&gt;&#xA;    &lt;div class=&#34;caption&#34;&gt;Figure 3: Password entry happens in a separate native dialog, so Finder keeps normal keyboard control.&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;choose-which-formats-archive-peek-handles&#34;&gt;Choose Which Formats Archive Peek Handles&#xA;&lt;/h2&gt;&lt;p&gt;Quick Look extensions can overlap, especially on a Mac with several archive utilities installed. Archive Peek therefore includes a small main app where each format group can be enabled or disabled. You can let it handle disk images and 7Z files, for example, while leaving ZIP previews to another extension.&lt;/p&gt;&#xA;&lt;div class=&#34;post-figure&#34;&gt;&#xA;    &lt;img src=&#34;https://jingyuan-zheng.github.io/img/archive-peek/format-settings.png&#34; alt=&#34;Archive Peek settings with aligned switches for supported format groups&#34;&gt;&#xA;    &lt;div class=&#34;caption&#34;&gt;Figure 4: Format switches let Archive Peek coexist with other Quick Look extensions.&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;install-archive-peek&#34;&gt;Install Archive Peek&#xA;&lt;/h2&gt;&lt;p&gt;Open the &lt;a class=&#34;link&#34; href=&#34;https://github.com/Jingyuan-Zheng/Archive-Peek&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Archive Peek project page&lt;/a&gt;, download the latest DMG from its Releases section, drag &lt;strong&gt;Archive Peek&lt;/strong&gt; to &lt;strong&gt;Applications&lt;/strong&gt;, and open it once. Choose the formats you want, then select a supported file in Finder and press Space.&lt;/p&gt;&#xA;&lt;p&gt;The project page also contains the source code and full documentation. If Archive Peek is useful to you, please consider giving it a &lt;strong&gt;Star&lt;/strong&gt;—it helps more Mac users discover the project and lets me know that continued development is worthwhile.&lt;/p&gt;&#xA;&lt;p&gt;The current community build is not notarized by Apple. First try approving it in &lt;strong&gt;System Settings → Privacy &amp;amp; Security&lt;/strong&gt;. If macOS still blocks a copy that you downloaded from the official project page, open Terminal and run:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;&#xA;&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1&#xA;&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2&#xA;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#xA;&lt;td class=&#34;lntd&#34;&gt;&#xA;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;xattr -dr com.apple.quarantine &lt;span class=&#34;s2&#34;&gt;&amp;#34;/Applications/Archive Peek.app&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;open &lt;span class=&#34;s2&#34;&gt;&amp;#34;/Applications/Archive Peek.app&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&lt;p&gt;The first command removes the downloaded-file quarantine marker; it does not sign the app or change its program code. Only use it for a copy obtained from the official Archive Peek project page or another source you trust.&lt;/p&gt;&#xA;&lt;p&gt;Archive Peek began as a focused DMG preview experiment. It has since become a more general answer to a small but persistent Finder limitation: sometimes you want to look inside a container without opening, mounting, or unpacking it first.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-it-works&#34;&gt;How It Works&#xA;&lt;/h2&gt;&lt;p&gt;The interface is built with Swift and SwiftUI as a modern Quick Look Preview Extension. A thin Objective-C++ bridge sends the selected file to bit7z 4.1.0 and the official 7-Zip 26.02 handlers, then returns only the metadata needed to build the preview.&lt;/p&gt;&#xA;&lt;p&gt;For a DMG, Archive Peek opens the disk-image layer, finds an APFS or HFS/HFSX child, and opens that child through a random-access parent stream. That is the important part: the filesystem can be enumerated without mounting the DMG or first writing a raw image to disk. The same bounded traversal handles other archive, partition-table, disk-image, and filesystem layers.&lt;/p&gt;&#xA;&lt;p&gt;The original Archive Peek code is released under the MIT License. Its bundled parsing dependencies retain their own upstream licenses; the repository includes the corresponding notices and source.&lt;/p&gt;&#xA;&lt;h2 id=&#34;questions-and-answers&#34;&gt;Questions and Answers&#xA;&lt;/h2&gt;&lt;h3 id=&#34;does-archive-peek-extract-or-mount-my-files&#34;&gt;Does Archive Peek extract or mount my files?&#xA;&lt;/h3&gt;&lt;p&gt;No. Previews are read-only. Archive Peek does not mount disk images, extract the full archive into a folder, create temporary raw images, or modify the original file.&lt;/p&gt;&#xA;&lt;h3 id=&#34;which-formats-should-i-enable&#34;&gt;Which formats should I enable?&#xA;&lt;/h3&gt;&lt;p&gt;Enable the formats for which you want Archive Peek to become the Finder preview provider. If another Quick Look extension already handles ZIP files the way you prefer, you can leave ZIP disabled and enable only DMG, ISO, 7Z, or other groups.&lt;/p&gt;&#xA;&lt;h3 id=&#34;can-it-preview-password-protected-archives&#34;&gt;Can it preview password-protected archives?&#xA;&lt;/h3&gt;&lt;p&gt;Yes, encrypted ZIP and 7Z files are supported. Archive Peek asks for the password in a native macOS dialog and keeps it only in memory for the active preview. Other encrypted formats may not be supported.&lt;/p&gt;&#xA;&lt;h3 id=&#34;why-can-two-files-with-the-same-extension-behave-differently&#34;&gt;Why can two files with the same extension behave differently?&#xA;&lt;/h3&gt;&lt;p&gt;An extension such as &lt;code&gt;.img&lt;/code&gt;, &lt;code&gt;.iso&lt;/code&gt;, or &lt;code&gt;.zip&lt;/code&gt; describes the outer container, but the internal filesystem, compression method, encryption, and file integrity can differ. Archive Peek can preview the combinations supported by its parsing backend and reports a clear error for unsupported or damaged files.&lt;/p&gt;&#xA;&lt;h3 id=&#34;what-should-i-do-if-archive-peek-does-not-appear-in-finder&#34;&gt;What should I do if Archive Peek does not appear in Finder?&#xA;&lt;/h3&gt;&lt;p&gt;Open Archive Peek once, confirm that the file&amp;rsquo;s format is enabled, then check &lt;strong&gt;System Settings → General → Login Items &amp;amp; Extensions → Quick Look&lt;/strong&gt; and enable Archive Peek. Closing and reopening the Finder preview may also be necessary after changing format settings.&lt;/p&gt;&#xA;&lt;h2 id=&#34;related-posts&#34;&gt;Related Posts&#xA;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;To create a polished installer image for your own Mac app, see &lt;a class=&#34;link&#34; href=&#34;https://jingyuan-zheng.github.io/p/dmg-maker-create-beautiful-macos-installers-automatically/&#34; &gt;How to Make a macOS DMG Installer with a Custom Background&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;To remove mounted installer volumes after a busy setup session, see &lt;a class=&#34;link&#34; href=&#34;https://jingyuan-zheng.github.io/p/eject-disk-images/&#34; &gt;Eject Disk Images&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
        </item></channel>
</rss>
