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
ci(cua-spaces): release macOS only for now (#4404)
ddupont26eaa6adaaad
diff --git a/.github/scripts/tests/test_cua_sdk_release_repository.py b/.github/scripts/tests/test_cua_sdk_release_repository.pyindex 0699f10762..bf288c7758 100644--- a/.github/scripts/tests/test_cua_sdk_release_repository.py+++ b/.github/scripts/tests/test_cua_sdk_release_repository.py@@ -97,6 +97,29 @@ def test_spaces_signing_fails_closed_only_on_trycua_cua() -> None:assert "$env:REQUIRE_SIGNING -eq 'true'" in verify+def test_spaces_releases_macos_only_for_now() -> None:+ jobs = workflow("cd-cua-spaces.yml")["jobs"]+ # The Tauri Linux/Windows job is kept but off unless explicitly enabled.+ assert jobs["build-linux-windows"]["if"] == "vars.CUA_SPACES_LINUX_WINDOWS == 'true'"+ assert "if" not in jobs["build-macos"]+ # Publishing runs with the Tauri job skipped, never after it failed.+ gate = jobs["installer-manifest"]["if"]+ assert "!cancelled()" in gate+ assert "needs.build-macos.result == 'success'" in gate+ assert "needs.build-linux-windows.result == 'skipped'" in gate+ assert "startsWith(github.ref, 'refs/tags/cua-spaces-v')" in gate+ # latest.json (the Tauri feed) only when Linux/Windows artifacts exist.+ sign = step("cd-cua-spaces.yml", "installer-manifest", "Sign, checksum and build release-artifacts.json")["run"]+ assert 'compgen -G "assets/cua-spaces-$VERSION-linux-*"' in sign+ assert "updater_feed.py" in sign+ assert "cosign sign-blob" in sign and "checksums.txt" in sign+ feeds = step("cd-cua-spaces.yml", "installer-manifest", "Update the rolling feeds")["run"]+ assert "if [ -f assets/latest.json ]; then" in feeds+ assert "cua-install-latest assets/release-artifacts.json" in feeds+ appcast = step("cd-cua-spaces.yml", "installer-manifest", "Upload the Sparkle appcast")+ assert appcast["if"] == "needs.build-macos.outputs.appcast == 'true'"++def test_spaces_prereleases_never_become_latest_or_move_canonical_feeds() -> None:publish = step("cd-cua-spaces.yml", "installer-manifest", "Publish the release")["run"]assert "--prerelease --latest=false" in publishdiff --git a/.github/workflows/cd-cua-spaces.yml b/.github/workflows/cd-cua-spaces.ymlindex 67a3f1a473..b0f00a17b5 100644--- a/.github/workflows/cd-cua-spaces.yml+++ b/.github/workflows/cd-cua-spaces.yml@@ -2,6 +2,17 @@ name: "CD: Cua Spaces"# Cua Spaces desktop releases, published to a GitHub Release.#+# MACOS ONLY FOR NOW: a release builds and publishes only the macOS SwiftUI+# app (build-macos). The Linux and Windows Tauri app (build-linux-windows) is+# kept below but disabled by its `if:`; installer-manifest runs without it,+# and the Tauri updater feed (latest.json) is skipped while no Linux/Windows+# updater artifact is on the release. install.sh / install.ps1 skip the Cua+# Spaces app on Linux and Windows with a note. To bring Linux and Windows+# back, drop build-linux-windows's `if:` (latest.json is then built and+# required again for every Tauri platform) and re-enable the app in the+# installers (spaces_supported in install.sh, $script:SpacesSupported in+# install.ps1).+## macOS: the SwiftUI app (apps/cua-spaces-macos), universal (arm64 + x86_64),# built by apps/cua-spaces-macos/scripts/build-release.sh: the Cua Spaces app# export (cua-spaces-ffi, bundled as libcua_sdk.dylib) and the Cua Spaces@@ -27,7 +38,8 @@ name: "CD: Cua Spaces"# items are Beta only). Two releases publishing at once could drop one# item; the next release adds it back.#-# Linux and Windows: the Tauri app (apps/cua-spaces), with Tauri auto-updater+# Linux and Windows (disabled for now, see above): the Tauri app+# (apps/cua-spaces), with Tauri auto-updater# artifacts (.sig) and a `latest.json` update feed that lists only those# platforms. Every Tauri bundle carries the Cua Spaces build of the `cua` CLI# as its `cua` sidecar (scripts/prepare-cli-sidecar.sh,@@ -67,10 +79,11 @@ name: "CD: Cua Spaces"# cua-spaces-v0.2.0-staging.1) is published as a GitHub prerelease, never# marked latest; on trycua/cua it does not move the rolling feeds.#-# The updater feed (`latest.json` on this release and on the rolling+# The Tauri updater feed (`latest.json` on this release and on the rolling# `cua-spaces-latest` release) is written once every platform has finished-# (scripts/install/updater_feed.py). Installer assets and the feed carry-# keyless Sigstore (cosign) bundles, which install.sh / install.ps1 verify.+# (scripts/install/updater_feed.py), and only when the release carries Linux+# or Windows updater artifacts. Installer assets and the feed carry keyless+# Sigstore (cosign) bundles, which install.sh / install.ps1 verify.## Release Please owns the version (component `cua-spaces`, apps/cua-spaces/VERSION)# and creates a draft release plus the `cua-spaces-v<version>` tag; this@@ -446,9 +459,14 @@ jobs:donerm -f "$RUNNER_TEMP/application.p12" "$RUNNER_TEMP/installer.p12"+ # Disabled: Cua Spaces ships for macOS only for now (see the header). It+ # runs only when the repository variable CUA_SPACES_LINUX_WINDOWS is 'true'+ # (unset everywhere today); drop the `if:` to build and publish the Linux+ # and Windows Tauri app on every release again.build-linux-windows:name: ${{ matrix.name }}needs: build-macos+ if: vars.CUA_SPACES_LINUX_WINDOWS == 'true'# Holds the Azure Artifact Signing identity (Windows Authenticode).environment: cua-driver-release-signingpermissions:@@ -679,7 +697,11 @@ jobs:# Only a release tag publishes: the Sigstore identity the installers and# the updater feed trust is cd-cua-spaces.yml at refs/tags/cua-spaces-v*.# A manual run from a tag re-publishes; from a branch it only builds.- if: startsWith(github.ref, 'refs/tags/cua-spaces-v')+ # build-linux-windows may be skipped (disabled: macOS only), never failed.+ if: >-+ !cancelled() && startsWith(github.ref, 'refs/tags/cua-spaces-v')+ && needs.build-macos.result == 'success'+ && (needs.build-linux-windows.result == 'success' || needs.build-linux-windows.result == 'skipped')runs-on: ubuntu-latestpermissions:contents: write@@ -703,7 +725,7 @@ jobs:pattern: signing-*path: signingmerge-multiple: true- - name: Sign, checksum and build release-artifacts.json and latest.json+ - name: Sign, checksum and build release-artifacts.json (and latest.json)env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}VERSION: ${{ steps.version.outputs.version }}@@ -726,12 +748,20 @@ jobs:--dir assets --base-url "$BASE" \--repo "$GITHUB_REPOSITORY" --merge previous/release-artifacts.json --out assets/release-artifacts.json# The Tauri updater feed: Linux and Windows only (the macOS app is- # the SwiftUI app, which has no updater). Fails when any of those- # platforms is missing or unsigned.- python3 scripts/install/updater_feed.py --version "$VERSION" --dir assets \- --base-url "$BASE" --out assets/latest.json- gh release upload "$TAG" assets/*.sigstore.json assets/checksums.txt \- assets/release-artifacts.json assets/latest.json --clobber --repo "$GITHUB_REPOSITORY"+ # the SwiftUI app, which updates through the Sparkle appcast). With+ # any Linux/Windows artifact on the release it fails when one of+ # those platforms is missing or unsigned; with none (macOS only for+ # now) there is no feed.+ upload=(assets/*.sigstore.json assets/checksums.txt assets/release-artifacts.json)+ if compgen -G "assets/cua-spaces-$VERSION-linux-*" >/dev/null \+ || compgen -G "assets/cua-spaces-$VERSION-windows-*" >/dev/null; then+ python3 scripts/install/updater_feed.py --version "$VERSION" --dir assets \+ --base-url "$BASE" --out assets/latest.json+ upload+=(assets/latest.json)+ else+ echo "::notice::macOS-only release: no Linux/Windows Tauri app, so no latest.json"+ fi+ gh release upload "$TAG" "${upload[@]}" --clobber --repo "$GITHUB_REPOSITORY"- name: Publish the releaseenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}@@ -807,7 +837,11 @@ jobs:exit 1}fi- gh release upload cua-spaces-latest assets/latest.json --clobber --repo "$GITHUB_REPOSITORY"+ # The Tauri feed only when this release has one (macOS only for+ # now: Linux/Windows installs keep their current feed).+ if [ -f assets/latest.json ]; then+ gh release upload cua-spaces-latest assets/latest.json --clobber --repo "$GITHUB_REPOSITORY"+ fiif ! gh release view cua-install-latest --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then# The Actions token may create a release only for an existing tag# (with --target, or for a new tag, the API answers 403). Push the tagdiff --git a/scripts/install/README.md b/scripts/install/README.mdindex 0d391ba7e8..baf7d7b0af 100644--- a/scripts/install/README.md+++ b/scripts/install/README.md@@ -19,7 +19,7 @@ In a terminal, install.sh shows a checklist (arrow or number keys to move and to| Item | What it does | Default ||---|---|---|| `cli` | The `cua` CLI | Always (not with `--app-only`) |-| `spaces` | The Cua Spaces app | On for macOS; off and hidden on Linux and Windows unless selected. `--app-only` and `--mode` imply it |+| `spaces` | The Cua Spaces app | On for macOS. macOS only for now: on Linux and Windows it is hidden, and selecting it (`--select`/`--only spaces`, `--app-only`, `--mode`) skips the app with a note. `--app-only` and `--mode` imply it || `cua-driver` | Installs cua-driver with its own release installer (`cua.ai/driver/install.sh` / `install.ps1`, which verify SHA256SUMS and the Sigstore bundle), then `cua agents setup --cua-driver --agents all --yes` registers its skill and MCP server for your agents | Off || `host` | Runs `cua host setup` after sign-in so others on your account can reach this machine | Off |@@ -55,14 +55,14 @@ Pass install.sh options through the pipe with `sh -s --`, for example `curl -fsS| | CLI | App ||---|---|---|| macOS | `~/.local/bin/cua` (`/usr/local/bin` as root) | `/Applications` if writable, else `~/Applications` (from the .dmg; the SwiftUI app, macOS 26 or later, skipped on older macOS) |-| Linux | same as macOS | AppImage at `~/.local/bin/cua-spaces` plus a desktop entry; the .deb via apt-get when run as root |-| Windows | `%LOCALAPPDATA%\Programs\cua\bin\cua.exe` | Silent MSI (`CUA_SPACES_MODE=`) or NSIS (`/S /MODE=`) |+| Linux | same as macOS | Not offered for now (macOS only). When re-enabled: AppImage at `~/.local/bin/cua-spaces` plus a desktop entry; the .deb via apt-get when run as root |+| Windows | `%LOCALAPPDATA%\Programs\cua\bin\cua.exe` | Not offered for now (macOS only). When re-enabled: silent MSI (`CUA_SPACES_MODE=`) or NSIS (`/S /MODE=`) |cua-driver lands where its own installer puts it: `~/.local/bin/cua-driver` (or `DIR/bin` with `--prefix`), `%LOCALAPPDATA%\Programs\Cua\cua-driver\bin` on Windows.The scripts never edit shell profiles unless you pass `--modify-path`. `--mode` writes `~/.cua/spaces-install-mode`, which the app reads on first launch.-MDM on macOS: `apps/cua-spaces/scripts/build-pkg.sh` builds a `.pkg` (signed with `--sign`, install mode baked with `--mode`) that installs the app and links `/usr/local/bin/cua` to the CLI bundled inside it. The macOS app is the SwiftUI app (`apps/cua-spaces-macos`, `scripts/build-release.sh`), which carries the CLI as `Contents/MacOS/cua`; the Linux and Windows (Tauri) bundles carry it as a sidecar (`apps/cua-spaces/scripts/prepare-cli-sidecar.sh` + `src-tauri/tauri.sidecar.conf.json`).+MDM on macOS: `apps/cua-spaces/scripts/build-pkg.sh` builds a `.pkg` (signed with `--sign`, install mode baked with `--mode`) that installs the app and links `/usr/local/bin/cua` to the CLI bundled inside it. The macOS app is the SwiftUI app (`apps/cua-spaces-macos`, `scripts/build-release.sh`), which carries the CLI as `Contents/MacOS/cua`; the Linux and Windows (Tauri) bundles, not released for now, carry it as a sidecar (`apps/cua-spaces/scripts/prepare-cli-sidecar.sh` + `src-tauri/tauri.sidecar.conf.json`).## Release manifestdiff --git a/scripts/install/install.ps1 b/scripts/install/install.ps1index e7471609a0..2e346ebdee 100644--- a/scripts/install/install.ps1+++ b/scripts/install/install.ps1@@ -9,7 +9,7 @@ Cua installer for Windows: the `cua` CLI, the Cua Spaces app and agent extras.At a console it first shows a numbered checklist of what to install. Items:cli the cua CLI (always installed, except with -AppOnly)- spaces the Cua Spaces app (off by default; -AppOnly or -Mode imply it)+ spaces the Cua Spaces app (macOS only for now; skipped here with a note)cua-driver cua-driver MCP and skill for your agents (off by default)host host this machine: `cua host setup` (off by default)Set CUA_INSTALL_NONINTERACTIVE=1 to never prompt.@@ -17,8 +17,9 @@ Set CUA_INSTALL_NONINTERACTIVE=1 to never prompt.Reads release-artifacts.json (see scripts/install/README.md), downloads theartifacts for this machine, verifies their sha256 (and a minisign or cosignsignature when available), installs `cua` to %LOCALAPPDATA%\Programs\cua\bin-(or -Prefix\bin) and Cua Spaces with a silent MSI (or NSIS) install, then runs-`cua auth login` when a user is at the console.+(or -Prefix\bin), then runs `cua auth login` when a user is at the console.+Cua Spaces is macOS-only for now, so -AppOnly, -Mode and the `spaces` item+install nothing here (the installer says so and goes on)..PARAMETER SelectPreselect items (comma list: spaces, cua-driver, host); the checklist still shows.@@ -70,6 +71,10 @@ $LatestTag = 'cua-install-latest'$MinisignPubkey = $env:CUA_INSTALL_MINISIGN_PUBKEY$CuaItems = @('spaces', 'cua-driver', 'host')$script:Picked = $false+# Cua Spaces ships for macOS only for now (cd-cua-spaces.yml builds no Windows+# app): a selected `spaces` is skipped with a note. Set this to $true to bring+# the Windows app back (Install-App is kept).+$script:SpacesSupported = $falsefunction Write-Info([string]$Message) { Write-Host "cua-install: $Message" }function Stop-Install([string]$Message) { throw "cua-install: error: $Message" }@@ -419,6 +424,10 @@ function Invoke-CuaInstall {$ErrorActionPreference = 'Stop'$ProgressPreference = 'SilentlyContinue'$sel = Get-CuaSelection+ if ($sel.spaces -and -not $script:SpacesSupported) {+ Write-Info 'Cua Spaces is macOS-only for now; skipping the app on Windows'+ $sel.spaces = $false+ }if ($Version -and $Version.TrimStart('v') -notmatch '^\d+\.\d+\.\d+') { Stop-Install "-Version must look like 1.2.3, not '$Version'" }$platform = Get-CuaPlatformif (Test-WantsChecklist) { $sel = Read-CuaSelection $sel }diff --git a/scripts/install/install.sh b/scripts/install/install.shindex f05c379532..1415de88bd 100755--- a/scripts/install/install.sh+++ b/scripts/install/install.sh@@ -7,7 +7,7 @@## In a terminal it shows a checklist of what to install. Items:# cli the cua CLI (always installed, except with --app-only)-# spaces the Cua Spaces app (default on macOS; off on Linux)+# spaces the Cua Spaces app (macOS only for now; default on macOS)# cua-driver cua-driver MCP and skill for your agents (default off)# host host this machine: `cua host setup` (default off)#@@ -266,14 +266,25 @@ init_selection() {list="$only_list"elselist="$select_list"- # The app is a default only on macOS (Linux still ships it: --select spaces).- if [ "$os" = darwin ]; then sel_spaces=1; fi+ # The app is a default on macOS.+ if spaces_supported; then sel_spaces=1; fififor item in $(items_in "$list"); do item_set "$item" 1; done# Legacy: --app-only and --mode mean the app, as they always did.if [ "$app_only" = 1 ] || { [ -n "$mode" ] && [ "$cli_only" = 0 ]; }; thensel_spaces=1fi+ if [ "$sel_spaces" = 1 ] && ! spaces_supported; then+ info "Cua Spaces is macOS-only for now; skipping the app on Linux"+ sel_spaces=0+ fi+}++# Cua Spaces ships for macOS only for now (cd-cua-spaces.yml builds no Linux+# app). To bring Linux back, return 0 for linux too (install_app_linux is+# kept).+spaces_supported() {+ [ "$os" = darwin ]}# Show the checklist only when a human can answer it.@@ -307,8 +318,8 @@ draw_rows() { # cursor row, or 0 for the numbered list# checklist: pick items with arrows/numbers + space, Enter to install.checklist() {rows="cli"- # Spaces is hidden on Linux unless preselected (--select spaces, --mode).- if [ "$os" = darwin ] || [ "$sel_spaces" = 1 ]; then rows="$rows spaces"; fi+ # Spaces is offered only where it ships (macOS).+ if spaces_supported; then rows="$rows spaces"; firows="$rows cua-driver host"n=0for r in $rows; do n=$((n + 1)); donediff --git a/scripts/install/tests/install.Tests.ps1 b/scripts/install/tests/install.Tests.ps1index fe06ce7af7..278161f279 100644--- a/scripts/install/tests/install.Tests.ps1+++ b/scripts/install/tests/install.Tests.ps1@@ -178,17 +178,22 @@ Describe 'install.ps1' {$out | Should -Match 'is not on your PATH'}- It 'dry run: plans both components and changes nothing' {+ # Cua Spaces is macOS-only for now: Windows skips the app with a note.+ It 'dry run: plans the CLI, skips the app (macOS only) and changes nothing' {$prefix = Join-Path $env:CUA_TEST_ROOT 'p2'$out = Invoke-Installer @{ DryRun = $true; Yes = $true; Prefix = $prefix; Mode = 'host' } @{ CUA_INSTALL_ARCH = 'ARM64' }$out | Should -Match 'cua-cli-1.2.3-windows-arm64.zip'- $out | Should -Match 'msiexec.exe /i .*cua-spaces-1.2.3-windows-arm64.msi.* /qn /norestart CUA_SPACES_MODE=host'+ $out | Should -Match 'Cua Spaces is macOS-only for now'+ $out | Should -Not -Match 'msiexec'+ $out | Should -Not -Match 'cua-spaces-1.2.3-windows'$prefix | Should -Not -Exist}- It 'dry run with -Installer nsis uses /S /MODE' {+ It 'dry run: -AppOnly skips the app with a note and installs nothing' {$out = Invoke-Installer @{ DryRun = $true; Yes = $true; AppOnly = $true; Installer = 'nsis'; Mode = 'client' }- $out | Should -Match 'windows-x64-setup.exe /S /MODE=client'+ $out | Should -Match 'Cua Spaces is macOS-only for now'+ $out | Should -Not -Match 'setup.exe'+ $out | Should -Not -Match 'cua-cli-1.2.3'}It 'aborts on a checksum mismatch' {@@ -248,9 +253,11 @@ Describe 'install.ps1' {$out | Should -Not -Match 'cua-driver'}- It 'dry run: -Only spaces installs the app' {+ It 'dry run: -Only spaces installs the CLI and skips the app' {$out = Invoke-Installer @{ DryRun = $true; Only = 'spaces' }- $out | Should -Match 'msiexec.exe /i .*cua-spaces-1.2.3-windows-x64.msi'+ $out | Should -Match 'cua-cli-1.2.3-windows-x64.zip'+ $out | Should -Match 'Cua Spaces is macOS-only for now'+ $out | Should -Not -Match 'msiexec'}It 'dry run: -Select cua-driver,host prints the driver, agents and host steps' {@@ -268,8 +275,8 @@ Describe 'install.ps1' {{ Invoke-Installer @{ DryRun = $true; CliOnly = $true; Select = 'spaces' } } | Should -Throw '*use -Only spaces*'}- It 'dry run names the install-mode file for -Mode' {+ It 'dry run: -Mode writes no install-mode file while the app is skipped' {$out = Invoke-Installer @{ DryRun = $true; Yes = $true; AppOnly = $true; Mode = 'host' }- $out | Should -Match 'spaces-install-mode \(host\)'+ $out | Should -Not -Match 'spaces-install-mode'}}diff --git a/scripts/install/tests/run.sh b/scripts/install/tests/run.shindex bf227e8d1c..27173c700c 100755--- a/scripts/install/tests/run.sh+++ b/scripts/install/tests/run.sh@@ -165,13 +165,16 @@ check "no --modify-path: profile untouched" absent "$home/.profile"# ------------------------------------------------------------ selection+# Cua Spaces ships for macOS only for now: Linux skips it with a note (the+# manifest still lists Linux app artifacts; they are never downloaded).inst -- --yes --no-onboarding --select spaces --prefix "$work/s1"-check "--select spaces: installs the AppImage on Linux" exists "$work/s1/bin/cua-spaces"-check "--select spaces: writes a desktop entry under the prefix" exists "$work/s1/share/applications/cua-spaces.desktop"-check "--select spaces: still installs the CLI" exists "$work/s1/bin/cua"+check "--select spaces (Linux): skips the app with a note" sh -c "[ $status = 0 ] && grep -q 'Cua Spaces is macOS-only for now' '$work/out' && ! grep -q 'cua-spaces-$version-linux' '$work/out'"+check "--select spaces (Linux): no AppImage" absent "$work/s1/bin/cua-spaces"+check "--select spaces (Linux): no desktop entry" absent "$work/s1/share/applications/cua-spaces.desktop"+check "--select spaces (Linux): still installs the CLI" exists "$work/s1/bin/cua"inst -- --no-onboarding --only spaces --prefix "$work/s2"-check "--only spaces: installs CLI and AppImage" sh -c "[ $status = 0 ] && [ -e '$work/s2/bin/cua' ] && [ -e '$work/s2/bin/cua-spaces' ]"+check "--only spaces (Linux): installs the CLI, skips the app" sh -c "[ $status = 0 ] && [ -e '$work/s2/bin/cua' ] && [ ! -e '$work/s2/bin/cua-spaces' ] && grep -q 'Cua Spaces is macOS-only for now' '$work/out'"inst -- --no-onboarding --prefix "$work/s3"check "no tty, no --yes (Linux): CLI only, no hang" sh -c "[ $status = 0 ] && [ -e '$work/s3/bin/cua' ] && [ ! -e '$work/s3/bin/cua-spaces' ]"@@ -238,12 +241,16 @@ check "darwin x86_64 maps to darwin-x64" has_out "cua-cli-$version-darwin-x64.tacheck "--dry-run installs nothing" absent "$work/p4"inst -- --yes --app-only --mode host --prefix "$work/p5"+check "--app-only (Linux): exits 0 with a note" sh -c "[ $status = 0 ] && grep -q 'Cua Spaces is macOS-only for now' '$work/out'"check "--app-only skips the CLI" absent "$work/p5/bin/cua"-check "--app-only installs the app" exists "$work/p5/bin/cua-spaces"-check "--mode host writes the install-mode file" sh -c "grep -qx host '$home/.cua/spaces-install-mode'"+check "--app-only (Linux): no app" absent "$work/p5/bin/cua-spaces"+check "--mode host (Linux): no install-mode file" absent "$home/.cua/spaces-install-mode"inst -- --yes --no-onboarding --mode client --prefix "$work/p5b"-check "--mode client (Linux) still installs the AppImage" sh -c "[ -e '$work/p5b/bin/cua-spaces' ] && [ -e '$work/p5b/bin/cua' ] && grep -qx client '$home/.cua/spaces-install-mode'"+check "--mode client (Linux): installs the CLI, skips the app" sh -c "[ $status = 0 ] && [ -e '$work/p5b/bin/cua' ] && [ ! -e '$work/p5b/bin/cua-spaces' ] && [ ! -e '$home/.cua/spaces-install-mode' ]"++inst CUA_INSTALL_OS=Darwin -- --yes --dry-run --app-only --mode host --prefix "$work/p5c"+check "--mode host (macOS dry run): plans the app and the install-mode file" sh -c "[ $status = 0 ] && grep -q 'cua-spaces-$version-darwin-universal.dmg' '$work/out' && grep -q 'spaces-install-mode (host)' '$work/out'"inst -- --yes --mode servercheck "--mode rejects other values" sh -c "[ $status != 0 ] && grep -q 'host or client' '$work/out'"@@ -361,7 +368,7 @@ fi# Root with apt-get and no --prefix: the .deb path (dry run only).if [ "$(id -u)" = 0 ] && command -v apt-get >/dev/null 2>&1; theninst -- --yes --app-only --dry-run- check "root + apt: installs the .deb with apt-get" has_out "apt-get install -y .*cua-spaces-$version-linux-x64.deb"+ check "root + apt: the app is skipped, no .deb" sh -c "[ $status = 0 ] && ! grep -q 'apt-get install' '$work/out' && grep -q 'Cua Spaces is macOS-only for now' '$work/out'"fiinst -- --help@@ -415,7 +422,7 @@ if script --version 2>/dev/null | grep -q util-linux; thentty_inst '2\r' --select cua-driver --prefix "$work/t6"check "checklist: a preselected item can be turned off" sh -c "[ $status = 0 ] && [ -e '$work/t6/bin/cua' ] && [ ! -e '$work/t6/bin/cua-driver' ]"tty_inst '\r' --select spaces --prefix "$work/t7"- check "checklist: --select spaces shows and installs Spaces on Linux" sh -c "[ $status = 0 ] && grep -q 'Cua Spaces app' '$work/out' && [ -e '$work/t7/bin/cua-spaces' ]"+ check "checklist: --select spaces on Linux: no Spaces row, not installed" sh -c "[ $status = 0 ] && ! grep -q 'Cua Spaces app' '$work/out' && [ ! -e '$work/t7/bin/cua-spaces' ] && [ -e '$work/t7/bin/cua' ]"tty_inst '' --prefix "$work/t8"check "checklist: no input (EOF) accepts defaults, no hang" sh -c "[ $status = 0 ] && [ -e '$work/t8/bin/cua' ]"tty_inst '\r' --yes --select host --prefix "$work/t9"