Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
feat(cua-spaces): drag-the-key DMG installer and keycap app icon (#4558)
injaneity66ab76b656a8
diff --git a/apps/cua-spaces-macos/README.md b/apps/cua-spaces-macos/README.mdindex 9394a95e87..90501a6fed 100644--- a/apps/cua-spaces-macos/README.md+++ b/apps/cua-spaces-macos/README.md@@ -134,6 +134,17 @@ scripts/package-dmg.sh --app "/tmp/spaces-release/Cua Spaces.app" --out /tmp/cuascripts/verify-release.sh cua-spaces-0.2.0-darwin-universal.dmg # a downloaded release```+The disk image window is the spaces.cua.ai hero with the blue Cua Spaces key+missing. The app, whose icon is that key, sits on the left. The Applications+alias, whose icon is the key's outline with an Applications glyph, sits where+the key was, so installing is dragging the key into its place.+`package-dmg.sh` lays the window out with a pinned+[dmgbuild](https://github.com/dmgbuild/dmgbuild) (`scripts/dmg-settings.py`)+and makes the alias with `scripts/make-alias.swift`. The art in+`Support/dmg` and the app icon `Support/AppIcon.icns` are drawn from the+site's keycap sprites by `scripts/dmg-art/render.sh` (headless Chrome); rerun+it only when the art changes.+## Updates (Sparkle)The app updates itself with [Sparkle](https://sparkle-project.org) 2diff --git a/apps/cua-spaces-macos/Support/AppIcon.icns b/apps/cua-spaces-macos/Support/AppIcon.icnsnew file mode 100644index 0000000000..681cb45351Binary files /dev/null and b/apps/cua-spaces-macos/Support/AppIcon.icns differdiff --git a/apps/cua-spaces-macos/Support/dmg/applications.icns b/apps/cua-spaces-macos/Support/dmg/applications.icnsnew file mode 100644index 0000000000..0dc9abd4f3Binary files /dev/null and b/apps/cua-spaces-macos/Support/dmg/applications.icns differdiff --git a/apps/cua-spaces-macos/Support/dmg/background.png b/apps/cua-spaces-macos/Support/dmg/background.pngnew file mode 100644index 0000000000..7a3064b87dBinary files /dev/null and b/apps/cua-spaces-macos/Support/dmg/background.png differdiff --git a/apps/cua-spaces-macos/Support/dmg/[email protected] b/apps/cua-spaces-macos/Support/dmg/[email protected]new file mode 100644index 0000000000..86ef50d868Binary files /dev/null and b/apps/cua-spaces-macos/Support/dmg/[email protected] differdiff --git a/apps/cua-spaces-macos/scripts/build-app.sh b/apps/cua-spaces-macos/scripts/build-app.shindex 587e4909ec..4baeb37808 100755--- a/apps/cua-spaces-macos/scripts/build-app.sh+++ b/apps/cua-spaces-macos/scripts/build-app.sh@@ -5,9 +5,10 @@# Builds "Cua Spaces.app" (SwiftUI) from this package: the executable, the# Cua Spaces app export dylib (libcua_spaces_ffi, which carries the cua SDK;# staged as libs/cua/swift/lib/libcua_sdk.dylib by-# libs/spaces-app-swift/scripts/stage-library.sh), and the assets the-# Tauri app ships (apps/cua-spaces/src-tauri/icons: icon.icns and the menu-# bar template), plus the `cua` CLI next to the executable when one is built+# libs/spaces-app-swift/scripts/stage-library.sh), the app icon+# (Support/AppIcon.icns, the blue Cua Spaces key; scripts/dmg-art draws it)+# and the menu bar template the Tauri app ships (apps/cua-spaces/src-tauri/+# icons), plus the `cua` CLI next to the executable when one is built# (the app installs it onto PATH on first launch, like the Tauri app's# sidecar), Sparkle.framework (the updater, from the pinned SwiftPM# artifact, with its XPC services) in Contents/Frameworks and the@@ -72,7 +73,7 @@ fi# never looks there (only the bundle root, then this machine's build# directory), so the app finds them through ModuleResources instead.for b in "$bin"/*.bundle; do [ -d "$b" ] && cp -R "$b" "$app/Contents/Resources/"; done-cp "$icons/icon.icns" "$app/Contents/Resources/AppIcon.icns"+cp "$here/Support/AppIcon.icns" "$app/Contents/Resources/AppIcon.icns"cp "$icons/tray-template.png" "$app/Contents/Resources/tray-template.png"cp "$icons/[email protected]" "$app/Contents/Resources/[email protected]"cp "$here/THIRD_PARTY_NOTICES.md" "$app/Contents/Resources/THIRD_PARTY_NOTICES.md"diff --git a/apps/cua-spaces-macos/scripts/dmg-art/art.html b/apps/cua-spaces-macos/scripts/dmg-art/art.htmlnew file mode 100644index 0000000000..4468de1ebc--- /dev/null+++ b/apps/cua-spaces-macos/scripts/dmg-art/art.html@@ -0,0 +1,153 @@+<!doctype html>+<!-- SPDX-License-Identifier: FSL-1.1-MIT -->+<!-- Copyright (c) 2026 Cua AI, Inc. -->+<meta charset="utf-8">+<style>+ html, body { margin: 0; background: transparent; overflow: hidden; }+ .stage { position: relative; overflow: hidden; }+ .sky { position: absolute; inset: -12px; }+ .sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.7) contrast(1.08); }+ .star { position: absolute; border-radius: 50%; background: #f0f3fa; box-shadow: 0 0 3px #f0f3fab3; }+ .item { position: absolute; }+ .item > .in { position: absolute; inset: 0; }+ img.sprite { position: absolute; inset: 0; width: 100%; height: 100%; }+ .legend { position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0; }+ .legend > img { position: absolute; inset: 24%; width: 52%; height: 52%; object-fit: contain; }+ .legend > svg { position: absolute; inset: 17%; width: 66%; height: 66%; overflow: visible; }+</style>+<div class="stage" id="stage"></div>+<script>+ const WIN = { w: 720, h: 480 };+ const CANVAS = { w: 2560, h: 1440 };+ const APP = { x: 173, y: 240, label: 65 }, APPS = { x: 566, y: 147, label: 68 };+ const LABEL_DX = -0.75, LABEL_DY = 91.25;+ const ALIAS_DY = 128;+ const ALIAS_DX = -43;+ const ICON = 1024, TILE = 824, KEY = 640;++ const SPR = {+ "product-1": { w: 486, h: 470, outline: [[110,65],[309,8],[327,10],[341,20],[359,52],[414,165],[445,238],[461,280],[476,326],[476,345],[465,357],[421,375],[328,406],[187,449],[143,461],[125,461],[116,456],[109,447],[84,388],[19,218],[8,184],[11,164],[27,140],[51,109],[82,78],[104,67]], quad: [[105,78],[325,22],[415,215],[165,268]] },+ "product-2": { w: 494, h: 481, quad: [[100,92],[300,15],[408,222],[185,298]] },+ "product-3": { w: 491, h: 477, quad: [[95,82],[318,12],[410,210],[172,282]] },+ "product-4": { w: 484, h: 469 },+ "ivory-1": { w: 397, h: 383 }, "ivory-3": { w: 392, h: 393 }, "ivory-5": { w: 352, h: 350 }, "ivory-6": { w: 365, h: 398 },+ "near-1": { w: 473, h: 397 }, "near-2": { w: 467, h: 471 }, "near-3": { w: 463, h: 459 },+ "far-1": { w: 236, h: 220 }, "far-2": { w: 225, h: 212 }, "far-3": { w: 220, h: 220 }, "far-4": { w: 237, h: 226 },+ };+ const LAYOUT = [+ { src: "far-2", x: 54, y: 47, size: 5.2, depth: .1, rot: -8 }, { src: "far-4", x: 44, y: 74, size: 5, depth: .1, rot: 12 },+ { src: "far-1", x: 58, y: 90, size: 5.6, depth: .12, rot: 4 }, { src: "far-3", x: 97, y: 50, size: 5, depth: .1, rot: 6 },+ { src: "ivory-3", x: 85, y: 13, size: 9.5, depth: .45, rot: 4 }, { src: "ivory-1", x: 64, y: 60, size: 13.5, depth: .5, rot: -6 },+ { src: "ivory-5", x: 95, y: 68, size: 10, depth: .45, rot: 8 }, { src: "ivory-6", x: 70, y: 86, size: 9, depth: .45, rot: -3 },+ { src: "product-4", x: 61, y: 30, size: 14, depth: .55, rot: -4 },+ { src: "product-1", x: 78, y: 40, size: 15, depth: .6, rot: 6, legend: "spaces" },+ { src: "product-2", x: 93, y: 27, size: 13, depth: .55, rot: -9, legend: "driver" },+ { src: "product-3", x: 77, y: 66, size: 14, depth: .6, rot: 3, legend: "lume" },+ { src: "near-2", x: 56, y: 6, size: 15, depth: .9, rot: 0 }, { src: "near-1", x: 3, y: 92, size: 19, depth: 1, rot: 0, soft: true },+ { src: "near-3", x: 92, y: 96, size: 19, depth: .95, rot: 0 },+ ];+ const LEGEND = {+ spaces: '<img src="src/spaces-tray-template.svg" style="opacity:.8;mix-blend-mode:multiply">',+ driver: '<img src="src/cua-driver-cursor.svg" style="opacity:.88">',+ lume: '<img src="src/lume-icon-white.svg" style="opacity:.88">',+ apps: '<svg viewBox="0 0 100 100" fill="none" stroke="#fff" stroke-width="8" stroke-linecap="round" opacity=".55"><path d="M58,14L24,78M42,14L76,78M16,60H84M20,86L28,72"/></svg>',+ };+ const TARGET = "product-1";++ const rng = (e) => () => ((e = (e * 16807) % 2147483647) - 1) / 2147483646;+ const starAt = (t, x, y) => ({ x, y, d: 1.2 + t() * 1.1, o: .55 + t() ** 2 * .45 });+ const STARS = (() => {+ const t = rng(7), out = Array.from({ length: 56 }, () => starAt(t, t() * WIN.w, t() * WIN.h));+ const more = Math.round(out.length * (CANVAS.w * CANVAS.h - WIN.w * WIN.h) / (WIN.w * WIN.h)), u = rng(11);+ while (out.length < 56 + more) {+ const x = u() * CANVAS.w, y = u() * CANVAS.h, s = starAt(u, x, y);+ if (x > WIN.w + 4 || y > WIN.h + 4) out.push(s);+ }+ return out;+ })();+ const EXTRA_KEYS = [+ { src: "far-1", x: 905, y: 130, w: 40, rot: 10 }, { src: "far-3", x: 1190, y: 430, w: 34, rot: -6 },+ { src: "far-2", x: 965, y: 655, w: 30, rot: 14 }, { src: "far-4", x: 1510, y: 250, w: 36, rot: -12 },+ { src: "ivory-5", x: 1330, y: 830, w: 72, rot: 8 }, { src: "far-1", x: 300, y: 760, w: 34, rot: -4 },+ { src: "far-3", x: 760, y: 990, w: 28, rot: 6 }, { src: "ivory-3", x: 1910, y: 590, w: 64, rot: -10 },+ { src: "far-2", x: 2210, y: 300, w: 32, rot: 12 }, { src: "far-4", x: 1720, y: 1110, w: 30, rot: -8 },+ { src: "far-1", x: 2380, y: 880, w: 36, rot: 4 }, { src: "near-3", x: 1150, y: 1330, w: 190, rot: 0 },+ ];++ function homography(q, t = 100) {+ const [[n, r], [i, a], [o, s], [c, l]] = q;+ const u = i - o, d = c - o, f = a - s, p = l - s, m = n - i + o - c, h = r - a + s - l, g = u * p - d * f;+ const _ = (m * p - d * h) / g, v = (u * h - m * f) / g;+ const y = i - n + _ * i, b = c - n + v * c, x = a - r + _ * a, S = l - r + v * l, C = 1 / t, w = 1 / 100;+ return `matrix3d(${y * C},${x * C},0,${_ * C},${b * w},${S * w},0,${v * w},0,0,1,0,${n},${r},0,1)`;+ }+ const legendAt = (src, w, html) => {+ const k = w / SPR[src].w;+ return `<div class="legend" style="transform:${homography(SPR[src].quad.map(([x, y]) => [x * k, y * k]))}">${html}</div>`;+ };+ const sprite = (src, w, legend) => `<img class="sprite" src="src/${src}.webp">` + (legend ? legendAt(src, w, LEGEND[legend]) : "");+ const sky = `<div class="sky"><img src="src/space-1920.webp"></div>`;+ const item = (src, x, y, w, rot, { legend, z = 0, soft = false } = {}) => {+ const h = w * SPR[src].h / SPR[src].w;+ return `<div class="item" style="left:${x - w / 2}px;top:${y - h / 2}px;width:${w}px;height:${h}px;z-index:${z}">+ <div class="in" style="transform:rotate(${rot}deg)${soft ? ";opacity:.72" : ""}">${sprite(src, w, legend)}</div></div>`;+ };++ function squircle(size, inset, n = 5) {+ const r = size / 2 - inset, c = size / 2, pts = [];+ for (let i = 0; i < 360; i++) {+ const a = (i / 360) * 2 * Math.PI, ca = Math.cos(a), sa = Math.sin(a);+ pts.push(`${(c + r * Math.sign(ca) * Math.abs(ca) ** (2 / n)).toFixed(2)} ${(c + r * Math.sign(sa) * Math.abs(sa) ** (2 / n)).toFixed(2)}`);+ }+ return `M${pts.join("L")}Z`;+ }++ function iconKey(inner, dy = 0, dx = 0) {+ const T = LAYOUT.find((e) => e.src === TARGET), sp = SPR[TARGET], h = KEY * sp.h / sp.w;+ return `<div class="item" style="left:${(ICON - KEY) / 2 + dx}px;top:${(ICON - h) / 2 + dy}px;width:${KEY}px;height:${h}px">+ <div class="in" style="transform:rotate(${T.rot}deg)">${inner(KEY, h)}</div></div>`;+ }++ const stage = document.getElementById("stage"), mode = location.hash.slice(1) || "bg";++ function guides() {+ const pill = (c) => { const w = c.label + 22, h = 20, x = c.x + LABEL_DX - w / 2, y = c.y + LABEL_DY - h / 2;+ return `<rect x="${x}" y="${y}" width="${w}" height="${h}" rx="10" fill="#5b5954" stroke="#fff" stroke-opacity=".22"/>`; };+ const P = [[250, 234], [318, 180], [415, 204], [494, 192]];+ const at = (t) => [0, 1].map((i) => (1 - t) ** 3 * P[0][i] + 3 * (1 - t) ** 2 * t * P[1][i] + 3 * (1 - t) * t * t * P[2][i] + t ** 3 * P[3][i]);+ let dots = "", n = 26;+ for (let i = 0; i < n; i++) {+ const t = i / (n - 1) * .94, [x, y] = at(t);+ dots += `<circle cx="${x.toFixed(1)}" cy="${y.toFixed(1)}" r="${(1.1 + t * .7).toFixed(2)}" fill="#f0f3fa" fill-opacity="${(.22 + t * .6).toFixed(2)}"/>`;+ }+ const [ex, ey] = at(1), [px, py] = at(.96), a = Math.atan2(ey - py, ex - px) * 180 / Math.PI;+ const head = `<path d="M-7,-5.5L0,0L-7,5.5" fill="none" stroke="#f0f3fa" stroke-opacity=".85" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" transform="translate(${ex.toFixed(1)},${ey.toFixed(1)}) rotate(${a.toFixed(1)})"/>`;+ return `<svg width="${CANVAS.w}" height="${CANVAS.h}" style="position:absolute;inset:0;z-index:20;overflow:visible">${pill(APP)}${pill(APPS)}${dots}${head}</svg>`;+ }++ if (mode === "bg") {+ Object.assign(stage.style, { width: CANVAS.w + "px", height: CANVAS.h + "px", background: "#050607" });+ stage.innerHTML = sky ++ STARS.map((s) => `<span class="star" style="left:${s.x.toFixed(1)}px;top:${s.y.toFixed(1)}px;width:${s.d}px;height:${s.d}px;opacity:${s.o.toFixed(2)}"></span>`).join("") ++ EXTRA_KEYS.map((e) => item(e.src, e.x, e.y, e.w, e.rot)).join("") ++ LAYOUT.filter((e) => e.src !== TARGET).map((e) =>+ item(e.src, e.x / 100 * WIN.w, e.y / 100 * WIN.h, e.size / 100 * WIN.w, e.rot, { legend: e.legend, z: Math.round(e.depth * 10), soft: e.soft })).join("") ++ guides();+ } else if (mode === "icon") {+ Object.assign(stage.style, { width: ICON + "px", height: ICON + "px" });+ const clip = `path('${squircle(ICON, (ICON - TILE) / 2)}')`;+ stage.innerHTML = `<div style="position:absolute;inset:0;clip-path:${clip};background:#050607;overflow:hidden">+ <div style="position:absolute;inset:${(ICON - TILE) / 2}px;overflow:hidden">${sky}</div>+ <div style="position:absolute;inset:0;background:radial-gradient(60% 55% at 50% 42%, rgba(120,170,215,.10), rgba(0,0,0,0) 70%)"></div>+ ${iconKey((w) => sprite(TARGET, w, "spaces"))}+ </div>`;+ } else if (mode === "alias") {+ Object.assign(stage.style, { width: ICON + "px", height: ICON + "px" });+ const sp = SPR[TARGET];+ stage.innerHTML = iconKey((w, h) => {+ const k = w / sp.w, pts = sp.outline.map(([x, y]) => `${(x * k).toFixed(1)},${(y * k).toFixed(1)}`).join(" ");+ return `<svg width="${w}" height="${h}" style="position:absolute;inset:0;overflow:visible"><polygon points="${pts}" fill="#fff" fill-opacity=".03" stroke="#fff" stroke-opacity=".42" stroke-width="5" stroke-linejoin="round"/></svg>` ++ legendAt(TARGET, w, LEGEND.apps);+ }, ALIAS_DY, ALIAS_DX);+ }+</script>diff --git a/apps/cua-spaces-macos/scripts/dmg-art/render.sh b/apps/cua-spaces-macos/scripts/dmg-art/render.shnew file mode 100755index 0000000000..647424d5b1--- /dev/null+++ b/apps/cua-spaces-macos/scripts/dmg-art/render.sh@@ -0,0 +1,54 @@+#!/usr/bin/env bash+# SPDX-License-Identifier: FSL-1.1-MIT+# Copyright (c) 2026 Cua AI, Inc.++# Renders art.html with headless Chrome into the checked-in assets:+# Support/AppIcon.icns the app icon (build-app.sh bundles it)+# Support/dmg/background.png, @2x the DMG window background+# Support/dmg/applications.icns the icon of the DMG's Applications alias+# Only needed when the art changes; releases use the committed files.+#+# scripts/dmg-art/render.sh [--chrome PATH]+set -euo pipefail+here="$(cd "$(dirname "$0")" && pwd)"+support="$here/../../Support"+chrome="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"+while [ $# -gt 0 ]; do+ case "$1" in+ --chrome) chrome="$2"; shift ;;+ -h | --help) sed -n '5,11p' "$0"; exit 0 ;;+ *) echo "unknown option: $1" >&2; exit 2 ;;+ esac+ shift+done+[ -x "$chrome" ] || { echo "Chrome not found at $chrome (pass --chrome)" >&2; exit 2; }++work="$(mktemp -d)"+trap 'rm -rf "$work"' EXIT++shot() {+ "$chrome" --headless=new --disable-gpu --hide-scrollbars --allow-file-access-from-files \+ --default-background-color=00000000 --force-device-scale-factor="$4" \+ --window-size="$2,$3" --virtual-time-budget=3000 \+ --screenshot="$5" "file://$here/art.html#$1" >/dev/null 2>&1+ [ -s "$5" ] || { echo "Chrome did not render #$1" >&2; exit 1; }+}++icns() {+ local set="$work/$1.iconset" s+ mkdir -p "$set"+ for s in 16 32 128 256 512; do+ sips -z "$s" "$s" "$2" --out "$set/icon_${s}x${s}.png" >/dev/null+ sips -z $((s * 2)) $((s * 2)) "$2" --out "$set/icon_${s}x${s}@2x.png" >/dev/null+ done+ iconutil -c icns "$set" -o "$3"+}++mkdir -p "$support/dmg"+shot bg 2560 1440 1 "$support/dmg/background.png"+shot bg 2560 1440 2 "$support/dmg/[email protected]"+shot icon 1024 1024 1 "$work/icon.png"+shot alias 1024 1024 1 "$work/alias.png"+icns app "$work/icon.png" "$support/AppIcon.icns"+icns alias "$work/alias.png" "$support/dmg/applications.icns"+ls -l "$support/AppIcon.icns" "$support/dmg"diff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/cua-driver-cursor.svg b/apps/cua-spaces-macos/scripts/dmg-art/src/cua-driver-cursor.svgnew file mode 100644index 0000000000..a8cae338fc--- /dev/null+++ b/apps/cua-spaces-macos/scripts/dmg-art/src/cua-driver-cursor.svg@@ -0,0 +1,4 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="36 24 80 80">+<!-- The Cua Driver cursor body: CURSOR_PATH in trycua/cua libs/cua-driver/rust/crates/cursor-overlay/assets/build_default_theme.py (hotspot 55,30). Fill only, no glow. -->+<path d="M55 30 C48 28 42 33 43 41 C43 41 64 98 64 98 C67 106 73 106 77 99 C77 99 86 79 86 79 C88 75 91 72 95 70 C95 70 108 63 108 63 C115 59 114 53 107 50 C107 50 55 30 55 30 Z" fill="#ffffff"/>+</svg>diff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/far-1.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/far-1.webpnew file mode 100644index 0000000000..46c3bb1145Binary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/far-1.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/far-2.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/far-2.webpnew file mode 100644index 0000000000..deec7f35bcBinary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/far-2.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/far-3.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/far-3.webpnew file mode 100644index 0000000000..1165c84ab8Binary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/far-3.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/far-4.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/far-4.webpnew file mode 100644index 0000000000..fe1c116eedBinary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/far-4.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-1.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-1.webpnew file mode 100644index 0000000000..3cdf357dd0Binary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-1.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-3.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-3.webpnew file mode 100644index 0000000000..cc24a135a8Binary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-3.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-5.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-5.webpnew file mode 100644index 0000000000..61565ef64cBinary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-5.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-6.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-6.webpnew file mode 100644index 0000000000..bd717ce614Binary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/ivory-6.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/lume-icon-white.svg b/apps/cua-spaces-macos/scripts/dmg-art/src/lume-icon-white.svgnew file mode 100644index 0000000000..d426156683--- /dev/null+++ b/apps/cua-spaces-macos/scripts/dmg-art/src/lume-icon-white.svg@@ -0,0 +1,9 @@+<svg width="1500" height="1500" viewBox="0 0 1500 1500" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M1007.5 1356.9C937.919 1375.09 868.647 1384.87 797.137 1386.7C703.652 1389.09 610.99 1378.64 520.078 1357.57C479.473 1348.15 441.286 1334.31 404.695 1315.55C328.81 1276.67 271.401 1212.05 241.861 1132.28C236.766 1118.52 227.528 1109.72 215.64 1102.3C198.579 1091.65 182.96 1080.46 169.141 1066.07C146.317 1042.32 136.822 1010.83 144.824 978.558C146.034 973.695 144.516 968.754 140.038 965.949L109.185 946.599C85.0226 931.442 72.6969 906.533 73.0056 878.228C73.2887 852.084 84.0705 829.697 104.708 813.691C119.298 802.369 104.399 770.847 96.6536 757.93C61.1431 698.565 79.9791 629.32 129.514 584.854C145.674 570.341 163.094 558.453 181.57 547.208C208.049 531.1 236.303 525.078 267.233 527.291C344.97 532.849 407.01 561.875 471.11 604.154C477.517 608.374 483.95 611.719 491.412 606.855C530.165 581.638 569.999 558.479 612.251 539.257C703.318 497.854 806.067 499.938 896.104 542.808C939.566 563.497 980.763 587.093 1022.11 613.777C1089.43 567.794 1152.24 534.059 1235.13 526.751C1295.91 521.965 1337.23 551.016 1379 591.03C1407.3 618.152 1423.18 654.949 1422.1 694.345C1421.48 717.453 1414.07 738.579 1402.26 758.058C1395.44 769.277 1384.43 794.65 1393.79 804.634C1415.33 827.535 1429.66 845.342 1427.11 879.772C1423.95 922.359 1397.16 937.541 1366.46 956.351C1346.98 968.291 1364.79 989.443 1358.8 1012.14C1350.23 1044.56 1327.17 1070.89 1298.43 1087.43C1288.91 1092.91 1282.65 1099.35 1280.65 1110.67C1277.66 1127.47 1273.21 1143.53 1266.29 1159.69C1220.36 1266.99 1117.71 1328.08 1007.5 1356.9ZM969.003 1304.64C1088.76 1279.21 1232.32 1199.83 1231.29 1061.75C1231.09 1035.76 1227.66 1011.42 1220.77 986.072C1188.22 866.108 1111.46 754.739 1011.44 680.81C958.144 641.414 898.548 606.341 834.912 586.913C760.34 564.14 691.429 574.819 620.485 605.054C478.598 665.525 366.431 780.857 311.492 925.189C301.096 952.491 296.49 979.716 290.315 1008C275.184 1077.29 295.693 1142.45 340.724 1195.84C375.694 1237.32 421.06 1265.78 472.499 1283.13C541.59 1306.41 612.637 1320.28 685.742 1324.94C780.489 1330.99 875.286 1324.53 969.003 1304.64ZM202.593 962.964C207.302 987.23 181.03 1008.25 230.436 1038.54L236.483 995.927C242.478 953.701 251.896 913.584 269.188 874.471C309.614 783.122 361.902 713.361 437.297 646.226C387.3 616.556 326.597 588.843 268.674 583.722C243.585 582.049 220.554 587.145 199.325 600.165C181.802 610.895 166.388 623.762 152.673 638.995C133.271 660.559 124.985 689.173 139.266 716.037C154.397 744.523 167.031 770.873 166.491 803.785C165.848 843.361 138.34 852.521 129.977 868.861C125.731 877.121 129.977 887.646 137.208 893.101C145.493 899.354 154.114 904.063 163.172 909.518C182.702 921.278 197.987 939.291 202.593 962.964ZM1365.46 886.874C1373.23 880.544 1376.58 868.604 1370.66 860.241C1359.28 844.236 1337.95 836.567 1336.72 802.395C1335.64 772.365 1344.62 744.394 1360.11 719.203C1375.39 694.319 1372.33 664.676 1354.06 642.675C1315.36 596.099 1266.26 573.043 1204.99 587.582C1155.92 599.213 1110.14 619.567 1067.33 648.027L1132.61 712.667C1203.27 782.633 1249.97 872.927 1272.1 969.886L1282.32 1023.69C1291.4 1022.23 1296.96 1016.1 1300.25 1007.94C1310.26 983.138 1290.35 959.748 1315.62 925.215C1331.96 902.879 1348.97 900.306 1365.46 886.874Z" fill="white"/>+<path d="M680.622 439.776C678.074 459.358 640.299 453.26 627.51 448.859C602.91 440.368 579.931 427.347 561.584 408.408C527.875 373.618 511.844 326.271 513.311 278.46C513.491 272.336 512.667 267.318 516.913 263.175C520.181 259.985 526.871 256.819 531.992 258.544C581.038 275.064 613.821 315.592 642.898 356.738C655.97 375.239 666.932 393.973 675.99 414.816C679.284 422.355 681.78 430.95 680.622 439.776ZM631.55 406.659C612.586 365.821 585.464 333.219 551.497 305.917C560.658 354.988 589.015 386.407 631.55 406.659Z" fill="white"/>+<path d="M1031.74 376.531C993.423 425.345 935.397 453.805 873.047 453.856C867.309 453.856 860.336 452.158 856.63 448.71C847.47 440.166 848.164 425.988 856.476 417.342C865.791 397.142 878.734 380.905 894.508 365.26C930.842 329.209 976.44 304.866 1027.21 296.246C1035.29 294.882 1043.76 295.5 1051.01 297.507C1059.12 299.745 1063.9 307.414 1062.33 315.828C1060.4 326.121 1055.13 335.179 1050.39 344.468C1044.63 355.79 1039.64 366.469 1031.74 376.531ZM1016.12 335.539C979.167 346.012 934.599 377.071 907.992 406.714C946.127 394.981 986.861 363.098 1016.12 335.539Z" fill="white"/>+<path d="M737.67 484.422L726.682 438.361C706.843 355.246 695.443 281.008 736.847 202.293C757.998 162.074 788.749 120.722 836.405 112.513C870.5 106.672 879.095 152.09 879.583 177.23C880.536 226.096 872.327 274.781 855.55 320.662C836.636 372.409 805.191 416.257 762.605 450.455L766.181 479.841C767.133 487.613 760.675 494.612 754.628 495.59C747.217 496.825 739.729 493.068 737.67 484.422ZM785.069 369.347C822.535 315.258 850.146 230.264 840.908 165.239C822.638 205.458 809.952 245.369 800.122 287.647C793.818 314.846 787.591 340.836 785.069 369.347ZM749.61 376.707C760.469 303.524 774.982 239.785 801.229 172.855C747.654 221.695 730.697 308.953 749.61 376.707Z" fill="white"/>+<path d="M687.698 1194.71C673.262 1190.95 661.528 1184.83 650.412 1176.54C621.334 1154.77 618.092 1120.73 624.68 1086.94C635.024 1034.01 652.882 983.577 678.666 936.359C683.89 926.76 689.654 918.964 696.447 910.601C723.131 877.638 771.019 872.517 804.239 899.201C814.249 907.255 821.815 916.879 828.428 928.304C858.097 979.563 879.584 1034.3 893.196 1092.01C895.383 1101.25 895.589 1110.1 895.589 1119.44C895.615 1157.45 871.607 1181.95 836.482 1192.42C788.08 1206.83 737.464 1207.6 687.698 1194.71Z" fill="white"/>+<path d="M491.078 1034.73L438.172 1034.86C422.785 1034.91 410.948 1022.59 410.948 1007.18L411.025 872.518C411.025 858.597 422.862 846.323 436.757 846.271L490.255 846.143C503.455 846.117 516.63 857.156 516.63 871.154V1010.01C516.63 1023.15 504.15 1034.71 491.078 1034.73Z" fill="white"/>+<path d="M1077.95 1034.71L1023.53 1034.48C1009.87 1034.43 997.721 1022.72 997.721 1008.69L997.798 871.232C997.798 857.105 1010.28 847.609 1023.02 845.988L1076.46 846.117C1089.69 846.143 1102.94 857.105 1102.94 871.154V1009.93C1102.97 1023.62 1090.77 1033.14 1077.95 1034.71Z" fill="white"/>+</svg>diff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/near-1.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/near-1.webpnew file mode 100644index 0000000000..5f4551f135Binary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/near-1.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/near-2.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/near-2.webpnew file mode 100644index 0000000000..d632f497a5Binary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/near-2.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/near-3.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/near-3.webpnew file mode 100644index 0000000000..e2a332d72fBinary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/near-3.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/product-1.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/product-1.webpnew file mode 100644index 0000000000..4d607dd70cBinary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/product-1.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/product-2.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/product-2.webpnew file mode 100644index 0000000000..77b0cef1afBinary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/product-2.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/product-3.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/product-3.webpnew file mode 100644index 0000000000..d71a67463fBinary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/product-3.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/product-4.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/product-4.webpnew file mode 100644index 0000000000..9bd45d2194Binary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/product-4.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/space-1920.webp b/apps/cua-spaces-macos/scripts/dmg-art/src/space-1920.webpnew file mode 100644index 0000000000..34e757817aBinary files /dev/null and b/apps/cua-spaces-macos/scripts/dmg-art/src/space-1920.webp differdiff --git a/apps/cua-spaces-macos/scripts/dmg-art/src/spaces-tray-template.svg b/apps/cua-spaces-macos/scripts/dmg-art/src/spaces-tray-template.svgnew file mode 100644index 0000000000..741d77708d--- /dev/null+++ b/apps/cua-spaces-macos/scripts/dmg-art/src/spaces-tray-template.svg@@ -0,0 +1,11 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36">+<!-- Generated by scripts/icons/gen-icon-svgs.py; edit that, not this. -->+<defs>+<mask id="m0" maskUnits="userSpaceOnUse" x="0" y="0" width="36" height="36"><rect width="36" height="36" fill="#fff"/><rect x="5.4" y="5.4" width="25.2" height="25.2" rx="7.1" fill="#000"/></mask>+<mask id="m1" maskUnits="userSpaceOnUse" x="0" y="0" width="36" height="36"><rect width="36" height="36" fill="#fff"/><rect x="11.4" y="11.4" width="25.2" height="25.2" rx="7.1" fill="#000"/></mask>+<mask id="m2" maskUnits="userSpaceOnUse" x="0" y="0" width="36" height="36"><rect width="36" height="36" fill="#fff"/><svg x="16.25" y="16.75" width="15.5" height="15.5" viewBox="0 0 1117.09 1117.09"><g fill="#000"><path d="M615.45,884.56c-19.83,6.49-41.54,7.23-62.2,6.71c-32.28-0.81-70.99-6.35-89.89-36.09 c-10.85-17.08-6.21-42.43-2.2-60.95c5.58-25.77,13.62-51.02,23.98-75.27c8.85-20.73,20.01-42.15,38.89-55.46 c19.7-13.89,44.92-15.47,65.19-1.66c24.79,16.89,36.18,48.86,47.62,75.37c8.2,19.01,15.26,38.59,19.94,58.79 c4.48,19.35,8.07,39.26-1.52,57.73c-7.37,14.19-21.31,24.12-36.32,29.62C617.78,883.77,616.62,884.17,615.45,884.56z"/><path d="M601.53,1028.22c-19.42,1.2-38.9,1.58-58.35,1.13c-115.28-2.64-253.01-26.14-326.27-125.85 c-14.2-19.33-25.22-40.85-33-63.51c-2.81-8.19-4.94-17.26-12.46-22.28c-16.07-10.73-32.64-20.22-43.86-36.46 c-10.38-15.01-15.75-33.56-14.37-51.81c0.71-9.44,2.3-15.28-6.43-20.98c-17.74-11.58-33.7-22.79-40.14-44.18 c-7.31-24.28,0.84-47.29,14.48-67.45c2-2.95,3.91-6.08,4.58-9.58c1.38-7.26-2.73-13.89-5.66-20.2c-3-6.46-6.01-12.86-9.15-19.27 c-6.66-13.6-12.78-27.91-13.65-43.23c-1.14-20.17,0.76-40.73,9.99-59.01c9.06-17.95,21.94-33.98,37.58-46.62 c45.67-36.92,109.66-23.27,160.19-5.44c26.71,9.43,52.68,21.59,77.38,35.45c4.19,2.35,6.39,2.69,10.51,0.03 c61.83-39.97,133.45-67.99,207.82-68.46c27.5-0.17,54.97,3.43,81.65,10.01c39.72,9.8,78.62,25.85,113.96,46.46 c6.28,3.66,16.86,12.9,24.45,11.44c3-0.58,6.7-3.66,9.35-5.11c23.86-13.04,47.3-25.88,73.1-34.82 c38.21-13.24,82.43-24.74,121.38-8.67c50.83,20.96,86.78,78.31,73.93,133.46c-4.08,17.5-15.64,32-19.59,49.41 c-1.04,4.58-1.43,9.46,0.09,13.91c3.09,9.06,11.64,15.83,15.67,24.74c4.23,9.33,6.63,19.51,6.71,29.76 c0.12,15.44-5.15,30.99-15.21,42.7c-7.35,8.57-17.14,15.49-26.9,21.03c-2.36,1.34-4.94,2.78-5.99,5.28 c-0.73,1.74-0.58,3.7-0.43,5.58c0.74,8.9,1.95,17.53,0.67,26.39c-0.61,4.24-1.6,8.42-2.91,12.5c-1.03,3.21-4.9,8.7-4.9,11.86 c-7.92,15.52-20.54,28.36-35.03,38.04c-3.79,2.53-9.12,5.06-11.87,8.8c-1.96,2.68-2.36,6.29-3.24,9.55 c-1.52,5.61-3.04,11.21-4.56,16.82c-4.83,17.82-12,34.64-22.29,49.99c-36.82,54.93-85.32,90.26-147.3,112.25 C723.56,1012.39,662.8,1024.43,601.53,1028.22z M620.68,979.97c54.47-3.71,107.81-13.91,158.39-35.25 c41.56-17.57,77.49-40.48,104.98-76.91c60.63-80.36,32.83-197.56-13.01-277.92c-18.04-31.63-42.05-60.47-68.7-85.2 c-81.98-76.07-201.17-117.71-311.44-89.56c-38.78,9.9-75.46,27.21-108.58,49.58c-66.16,44.68-114.14,109.14-142.77,183.23 c-15.03,38.9-23.65,83.54-23.83,125.25c-0.21,50.48,24.76,98.43,61.47,132.15c41.57,38.18,99.14,53.33,153.2,64.45 c59.35,12.21,121.18,14.06,181.55,10.72C614.86,980.34,617.77,980.16,620.68,979.97z M966.58,738.76 c2.53-2.76,4.49-6.03,5.68-9.97c1.95-6.42,1.95-13.24,1.87-19.95c-0.32-26.29,10.68-46.13,33.32-59.92 c7.96-4.84,17.51-11.15,17.12-21.86c-0.36-9.8-9.42-16.01-14.42-23.52c-6.5-9.78-8.36-23.01-7.85-34.51 c0.6-13.43,4.13-27.85,9.57-40.16c5.21-11.8,11.56-23,13.39-36.07c4.45-31.91-20.82-59.57-47.48-72.98 c-21.25-10.69-46.92-8.38-69.35-3.28c-25.45,5.79-50.18,14.74-73.42,26.6c-5.57,2.84-22.12,9.74-15.15,18.3 c10.26,12.59,23.18,22.74,34.3,34.56c11.53,12.26,22.22,25.3,31.99,38.99c21.34,29.9,38.25,62.94,50.26,97.65 c12.06,34.86,16.69,69.54,20.45,105.95c0.23,2.27,0.77,4.56,1.25,6.79C961.31,743.52,964.2,741.36,966.58,738.76z M174.43,764.7 c3.21-6,2.08-18.53,2.81-25.22c1.31-11.94,2.49-23.88,4.34-35.75c5.12-32.87,13.68-65.02,26.19-95.85 c20.74-51.1,53.51-94.7,90.29-135.23c2.35-2.59,13.75-11.59,10.47-15.71c-0.71-0.89-2.4-1.98-4.03-2.74 c-54.25-25.39-134.25-62.06-185.32-12.84c-11.15,10.75-20.2,24.1-23.85,39.16c-7.74,31.96,19.48,58.95,26.62,88.49 c2.79,11.54,3.32,23.85-0.22,35.18c-5.31,16.99-31.91,34.85-13.22,51.65c4.78,4.29,10.84,6.35,16.06,9.83 c4.62,3.07,9.39,6.63,13.29,10.6c7.59,7.73,13.91,16.98,16.2,27.7c2.34,10.93-1.72,21.45-0.42,32.29 C154.85,746.24,164.43,761.5,174.43,764.7z"/><path d="M556.48,280.01L556.48,280.01c-16.36,0-29.62-13.26-29.62-29.62V116.01c0-16.36,13.26-29.62,29.62-29.62l0,0 c16.36,0,29.62,13.26,29.62,29.62v134.38C586.1,266.75,572.84,280.01,556.48,280.01z"/><path d="M475.52,305.74L475.52,305.74c-11.57,11.57-30.32,11.57-41.89,0l-72.36-72.36c-11.57-11.57-11.57-30.32,0-41.89 l0,0c11.57-11.57,30.32-11.57,41.89,0l72.36,72.36C487.08,275.42,487.08,294.17,475.52,305.74z"/><path d="M637.94,305.73L637.94,305.73c11.57,11.57,30.32,11.57,41.89,0l72.36-72.36c11.57-11.57,11.57-30.32,0-41.89 l0,0c-11.57-11.57-30.32-11.57-41.89,0l-72.36,72.36C626.37,275.41,626.37,294.16,637.94,305.73z"/><path d="M358.94,765.85h-38.7c-11.05,0-20-8.95-20-20V644.88c0-11.05,8.95-20,20-20h38.7c11.05,0,20,8.95,20,20v100.97 C378.94,756.9,369.99,765.85,358.94,765.85z"/><path d="M796.7,765.49H758c-11.05,0-20-8.95-20-20V644.52c0-11.05,8.95-20,20-20h38.7c11.05,0,20,8.95,20,20v100.97 C816.7,756.54,807.74,765.49,796.7,765.49z"/></g></svg></mask>+</defs>+<rect x="1" y="1" width="22" height="22" rx="5.5" fill="#000" mask="url(#m0)"/>+<rect x="7" y="7" width="22" height="22" rx="5.5" fill="#000" mask="url(#m1)"/>+<rect x="13" y="13" width="22" height="22" rx="5.5" fill="#000" mask="url(#m2)"/>+</svg>diff --git a/apps/cua-spaces-macos/scripts/dmg-settings.py b/apps/cua-spaces-macos/scripts/dmg-settings.pynew file mode 100644index 0000000000..3b42b36d8d--- /dev/null+++ b/apps/cua-spaces-macos/scripts/dmg-settings.py@@ -0,0 +1,35 @@+# SPDX-License-Identifier: FSL-1.1-MIT+# Copyright (c) 2026 Cua AI, Inc.++import os.path++app = defines["app"] # noqa: F821+alias = defines["alias"] # noqa: F821+art = defines["art"] # noqa: F821+app_name = os.path.basename(app)++format = "UDZO"+compression_level = 9+filesystem = "HFS+"+files = [app, alias]+icon = os.path.join(app, "Contents", "Resources", "AppIcon.icns")++background = os.path.join(art, "background.png")+window_rect = ((200, 140), (720, 512))+default_view = "icon-view"+show_status_bar = False+show_tab_view = False+show_toolbar = False+show_pathbar = False+show_sidebar = False+show_icon_preview = False+include_icon_view_settings = True+arrange_by = None+label_pos = "bottom"+text_size = 12+icon_size = 144+hide_extensions = [app_name]+icon_locations = {+ app_name: (173, 240),+ os.path.basename(alias): (566, 147),+}diff --git a/apps/cua-spaces-macos/scripts/make-alias.swift b/apps/cua-spaces-macos/scripts/make-alias.swiftnew file mode 100644index 0000000000..8086a0f572--- /dev/null+++ b/apps/cua-spaces-macos/scripts/make-alias.swift@@ -0,0 +1,24 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++import AppKit++let args = CommandLine.arguments+guard args.count == 4 else {+ FileHandle.standardError.write("usage: make-alias.swift TARGET ALIAS ICON\n".data(using: .utf8)!)+ exit(2)+}+let target = URL(fileURLWithPath: args[1], isDirectory: true)+let alias = URL(fileURLWithPath: args[2])+do {+ let bookmark = try target.bookmarkData(options: .suitableForBookmarkFile, includingResourceValuesForKeys: nil, relativeTo: nil)+ try URL.writeBookmarkData(bookmark, to: alias)+} catch {+ FileHandle.standardError.write("could not write the alias: \(error)\n".data(using: .utf8)!)+ exit(1)+}+guard let icon = NSImage(contentsOfFile: args[3]),+ NSWorkspace.shared.setIcon(icon, forFile: alias.path, options: []) else {+ FileHandle.standardError.write("could not set the alias icon from \(args[3])\n".data(using: .utf8)!)+ exit(1)+}diff --git a/apps/cua-spaces-macos/scripts/package-dmg.sh b/apps/cua-spaces-macos/scripts/package-dmg.shindex eba9a61dd7..fec6073508 100755--- a/apps/cua-spaces-macos/scripts/package-dmg.sh+++ b/apps/cua-spaces-macos/scripts/package-dmg.sh@@ -30,16 +30,24 @@ done[ -n "$out" ] || { echo "--out is required" >&2; exit 2; }case "$out" in *.dmg) ;; *) echo "--out must end in .dmg" >&2; exit 2 ;; esac+here="$(cd "$(dirname "$0")" && pwd)"+art="$here/../Support/dmg"+dmgbuild_version="1.6.7"+for f in background.png [email protected] applications.icns; do+ [ -f "$art/$f" ] || { echo "missing $art/$f (scripts/dmg-art/render.sh draws it)" >&2; exit 1; }+done+[ -f "$app/Contents/Resources/AppIcon.icns" ] || { echo "$app has no Contents/Resources/AppIcon.icns" >&2; exit 2; }+work="$(mktemp -d)"trap 'rm -rf "$work"' EXIT-stage="$work/Cua Spaces"-mkdir -p "$stage"-ditto "$app" "$stage/$(basename "$app")"-ln -s /Applications "$stage/Applications"+python3 -m venv "$work/venv"+"$work/venv/bin/pip" install --quiet --disable-pip-version-check "dmgbuild==$dmgbuild_version"+swift "$here/make-alias.swift" /Applications "$work/Applications" "$art/applications.icns"mkdir -p "$(dirname "$out")"rm -f "$out"-hdiutil create -quiet -volname "Cua Spaces" -srcfolder "$stage" -fs HFS+ \- -format UDZO -imagekey zlib-level=9 -ov "$out"+"$work/venv/bin/dmgbuild" -s "$here/dmg-settings.py" \+ -D app="$app" -D alias="$work/Applications" -D art="$art" \+ "Cua Spaces" "$out" >&2if [ -n "$identity" ]; thencodesign --force --timestamp --sign "$identity" "$out"codesign --verify --strict --verbose=2 "$out" >&2