diff --git a/README.md b/README.md index 3a429b3..3c08edf 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Apache-2.0, no accounts, no telemetry, no Electron. What makes it different from the usual suspects: -- **Genuinely tiny and native.** The app bundle is ~8 MB (a 3.5 MB download) of Swift/SwiftUI on +- **Genuinely tiny and native.** The app bundle is ~8 MB (a ~4 MB download) of Swift/SwiftUI on Apple's Virtualization.framework. No Electron shell, no bundled node/qemu, no background updater. The 64 GB VM disk is APFS-sparse — a fresh engine really occupies ~1.3 GB. diff --git a/README.vi.md b/README.vi.md index e88bb90..2d5e01f 100644 --- a/README.vi.md +++ b/README.vi.md @@ -86,7 +86,7 @@ Apache-2.0, không cần tài khoản, không telemetry, không Electron. Điều làm DockZ khác với những cái tên quen thuộc: -- **Thật sự nhỏ gọn và native.** App bundle chỉ khoảng ~8 MB (bản tải về 3.5 MB), viết bằng Swift/SwiftUI trên +- **Thật sự nhỏ gọn và native.** App bundle chỉ khoảng ~8 MB (bản tải về ~4 MB), viết bằng Swift/SwiftUI trên Virtualization.framework của Apple. Không vỏ Electron, không đóng gói kèm node/qemu, không trình cập nhật chạy nền. Ổ đĩa VM 64 GB là file sparse trên APFS — một engine mới tinh thực tế chỉ chiếm ~1.3 GB. diff --git a/landing/assets/social-preview.png b/landing/assets/social-preview.png index bbd1296..2251d38 100644 Binary files a/landing/assets/social-preview.png and b/landing/assets/social-preview.png differ diff --git a/landing/index.html b/landing/index.html index 8f95ce6..2ed36be 100644 --- a/landing/index.html +++ b/landing/index.html @@ -23,7 +23,7 @@ - + @@ -534,7 +534,7 @@

App size
-
3.5 MB
+
~4 MB
Download
@@ -700,7 +700,7 @@

One 8 MB app replaces the whole stack

💾 App size - ~8 MB (3.5 MB download) + ~8 MB (~4 MB download) ~1.5 GB+ several hundred MB CLI + brew deps diff --git a/landing/vi/index.html b/landing/vi/index.html index 85c6ca7..5be69c6 100644 --- a/landing/vi/index.html +++ b/landing/vi/index.html @@ -24,7 +24,7 @@ - + @@ -535,7 +535,7 @@

Dung lượng app

-
3.5 MB
+
~4 MB
Bản tải về
@@ -701,7 +701,7 @@

Một app 8 MB thay cho cả bộ công cụ

💾 Dung lượng app - ~8 MB (bản tải 3.5 MB) + ~8 MB (bản tải ~4 MB) ~1.5 GB+ vài trăm MB CLI + các gói phụ thuộc qua brew diff --git a/landing/vi/vs/colima/index.html b/landing/vi/vs/colima/index.html index 136282a..64a3005 100644 --- a/landing/vi/vs/colima/index.html +++ b/landing/vi/vs/colima/index.html @@ -69,7 +69,7 @@

Chuyển sang chỉ mất vài phút

  • Image được lưu riêng theo từng engine — hãy pull lại (hoặc docker save / docker load) và tạo lại các volume bạn cần.
  • -
    Dùng thử DockZ

    Miễn phí, mã nguồn mở, ~8 MB (bản tải 3.5 MB). macOS 15+ trên Apple Silicon.

    +
    Dùng thử DockZ

    Miễn phí, mã nguồn mở, ~8 MB (bản tải ~4 MB). macOS 15+ trên Apple Silicon.

    Tải file DMG

    So sánh tại thời điểm tháng 10/2026, dựa trên tài liệu công khai của từng sản phẩm. Thấy thông tin nào đã cũ? Mở issue nhé.

    diff --git a/landing/vi/vs/docker-desktop/index.html b/landing/vi/vs/docker-desktop/index.html index 2ce9103..203b00d 100644 --- a/landing/vi/vs/docker-desktop/index.html +++ b/landing/vi/vs/docker-desktop/index.html @@ -70,7 +70,7 @@

    Chuyển sang chỉ mất vài phút

  • Image được lưu riêng theo từng engine — hãy pull lại (hoặc docker save / docker load) và tạo lại các volume bạn cần.
  • -
    Dùng thử DockZ

    Miễn phí, mã nguồn mở, ~8 MB (bản tải 3.5 MB). macOS 15+ trên Apple Silicon.

    +
    Dùng thử DockZ

    Miễn phí, mã nguồn mở, ~8 MB (bản tải ~4 MB). macOS 15+ trên Apple Silicon.

    Tải file DMG

    So sánh tại thời điểm tháng 10/2026, dựa trên tài liệu công khai của từng sản phẩm. Thấy thông tin nào đã cũ? Mở issue nhé.

    diff --git a/landing/vi/vs/orbstack/index.html b/landing/vi/vs/orbstack/index.html index aa941ea..b8b40db 100644 --- a/landing/vi/vs/orbstack/index.html +++ b/landing/vi/vs/orbstack/index.html @@ -69,7 +69,7 @@

    Chuyển sang chỉ mất vài phút

  • Image được lưu riêng theo từng engine — hãy pull lại (hoặc docker save / docker load) và tạo lại các volume bạn cần.
  • -
    Dùng thử DockZ

    Miễn phí, mã nguồn mở, ~8 MB (bản tải 3.5 MB). macOS 15+ trên Apple Silicon.

    +
    Dùng thử DockZ

    Miễn phí, mã nguồn mở, ~8 MB (bản tải ~4 MB). macOS 15+ trên Apple Silicon.

    Tải file DMG

    So sánh tại thời điểm tháng 10/2026, dựa trên tài liệu công khai của từng sản phẩm. Thấy thông tin nào đã cũ? Mở issue nhé.

    diff --git a/landing/vs/colima/index.html b/landing/vs/colima/index.html index 746294a..57a0103 100644 --- a/landing/vs/colima/index.html +++ b/landing/vs/colima/index.html @@ -68,7 +68,7 @@

    Switching takes a few minutes

  • Images live per engine — re-pull them (or docker save / docker load) and recreate volumes you need.
  • -
    Try DockZ

    Free, open source, ~8 MB (3.5 MB download). macOS 15+ on Apple Silicon.

    +
    Try DockZ

    Free, open source, ~8 MB (~4 MB download). macOS 15+ on Apple Silicon.

    Download the DMG

    Comparison as of October 2026, based on each product's public documentation. Spotted something out of date? Open an issue.

    diff --git a/landing/vs/docker-desktop/index.html b/landing/vs/docker-desktop/index.html index d6dcfbb..4031a9c 100644 --- a/landing/vs/docker-desktop/index.html +++ b/landing/vs/docker-desktop/index.html @@ -69,7 +69,7 @@

    Switching takes a few minutes

  • Images live per engine — re-pull them (or docker save / docker load) and recreate volumes you need.
  • -
    Try DockZ

    Free, open source, ~8 MB (3.5 MB download). macOS 15+ on Apple Silicon.

    +
    Try DockZ

    Free, open source, ~8 MB (~4 MB download). macOS 15+ on Apple Silicon.

    Download the DMG

    Comparison as of October 2026, based on each product's public documentation. Spotted something out of date? Open an issue.

    diff --git a/landing/vs/orbstack/index.html b/landing/vs/orbstack/index.html index a348a7e..c67a593 100644 --- a/landing/vs/orbstack/index.html +++ b/landing/vs/orbstack/index.html @@ -68,7 +68,7 @@

    Switching takes a few minutes

  • Images live per engine — re-pull them (or docker save / docker load) and recreate volumes you need.
  • -
    Try DockZ

    Free, open source, ~8 MB (3.5 MB download). macOS 15+ on Apple Silicon.

    +
    Try DockZ

    Free, open source, ~8 MB (~4 MB download). macOS 15+ on Apple Silicon.

    Download the DMG

    Comparison as of October 2026, based on each product's public documentation. Spotted something out of date? Open an issue.

    diff --git a/public/social-preview.png b/public/social-preview.png index bbd1296..2251d38 100644 Binary files a/public/social-preview.png and b/public/social-preview.png differ diff --git a/scripts/generate-social-preview.swift b/scripts/generate-social-preview.swift new file mode 100644 index 0000000..7082346 --- /dev/null +++ b/scripts/generate-social-preview.swift @@ -0,0 +1,80 @@ +#!/usr/bin/env swift +// Generates the 1280x640 social preview banner used by the README +// (public/social-preview.png) and the site's og:image +// (landing/assets/social-preview.png). +// +// The banner was a hand-made PNG and its tagline went stale ("~5 MB", +// "zero dependencies" — the app bundle is ~8 MB and TLS uses swift-nio-ssl). +// Edit `tagline` below and re-run instead of editing the image: +// +// swift scripts/generate-app-icon.swift # icon source, if missing +// swift scripts/generate-social-preview.swift +import AppKit + +let tagline = "~8 MB native app · real dockerd · no Electron · Apache 2.0" +let subtitle = "Docker & Linux VMs on Apple Silicon, natively." +let iconURL = URL(fileURLWithPath: "build/AppIcon.iconset/icon_512x512@2x.png") +let outputs = ["public/social-preview.png", "landing/assets/social-preview.png"] + +let width = 1280, height = 640 +guard let icon = NSImage(contentsOf: iconURL) else { + print("missing \(iconURL.path) — run scripts/generate-app-icon.swift first") + exit(1) +} +guard let rep = NSBitmapImageRep( + bitmapDataPlanes: nil, pixelsWide: width, pixelsHigh: height, bitsPerSample: 8, + samplesPerPixel: 4, hasAlpha: true, isPlanar: false, colorSpaceName: .deviceRGB, + bytesPerRow: 0, bitsPerPixel: 0) else { exit(1) } +rep.size = NSSize(width: width, height: height) // 1 point = 1 pixel + +NSGraphicsContext.saveGraphicsState() +NSGraphicsContext.current = NSGraphicsContext(bitmapImageRep: rep) +let canvas = NSRect(x: 0, y: 0, width: width, height: height) + +// Deep navy, lighter toward the bottom right. +NSGradient(colors: [ + NSColor(calibratedRed: 0.05, green: 0.12, blue: 0.27, alpha: 1), + NSColor(calibratedRed: 0.10, green: 0.27, blue: 0.53, alpha: 1), +])?.draw(in: canvas, angle: -25) + +// Three soft waves along the bottom, like the icon's. +for (index, alpha) in [0.10, 0.12, 0.14].enumerated() { + let base = CGFloat(205 - index * 70) + let wave = NSBezierPath() + wave.move(to: NSPoint(x: 0, y: 0)) + wave.line(to: NSPoint(x: 0, y: base)) + var x: CGFloat = 0 + let step: CGFloat = 8 + while x <= CGFloat(width) { + let y = base + 16 * sin((x / CGFloat(width)) * .pi * 2 + CGFloat(index) * 1.3) + wave.line(to: NSPoint(x: x, y: y)) + x += step + } + wave.line(to: NSPoint(x: CGFloat(width), y: 0)) + wave.close() + NSColor(calibratedRed: 0.55, green: 0.70, blue: 0.95, alpha: alpha).setFill() + wave.fill() +} + +// App icon (its PNG includes the macOS margin around the squircle). +icon.draw(in: NSRect(x: 112, y: 172, width: 296, height: 296)) + +func draw(_ text: String, size: CGFloat, weight: NSFont.Weight, alpha: CGFloat, baselineFromTop: CGFloat) { + let attributes: [NSAttributedString.Key: Any] = [ + .font: NSFont.systemFont(ofSize: size, weight: weight), + .foregroundColor: NSColor.white.withAlphaComponent(alpha), + ] + NSAttributedString(string: text, attributes: attributes) + .draw(at: NSPoint(x: 462, y: CGFloat(height) - baselineFromTop)) +} +draw("DockZ", size: 104, weight: .bold, alpha: 1, baselineFromTop: 292) +draw(subtitle, size: 30, weight: .semibold, alpha: 0.96, baselineFromTop: 358) +draw(tagline, size: 21, weight: .regular, alpha: 0.62, baselineFromTop: 410) + +NSGraphicsContext.restoreGraphicsState() + +guard let png = rep.representation(using: .png, properties: [:]) else { exit(1) } +for path in outputs { + try png.write(to: URL(fileURLWithPath: path)) + print("wrote \(path)") +}