Docs Desktop updates

Desktop updates

Mockarty Desktop never installs an update without your consent. Installed applications check signed packages and offer automatic installation when the current installation supports it, or a verified package for manual replacement otherwise. A separate server-hosted build has its own update screen.

Installed Desktop application

For macOS, Desktop 0.1.0-beta.111 and later requires macOS 13 Ventura or newer,
on both Apple Silicon and Intel. Check your macOS version before updating; do not
install these packages on macOS 12 Monterey or older.

For a stable installed application, open Help → Check for Updates. Desktop checks the signed stable release channel and either reports that the current version is up to date or shows the verified candidate. Before offering installation, it verifies the release metadata chain, signed release index, package digest, Mockarty package signature, and the operating-system package signature.

Review the version, channel, size, and digest prefix, then choose Install verified update. Desktop passes that exact package to its external update helper, restarts, checks that the new process is ready, and restores the retained previous version if readiness fails. It does not poll or install silently in the background.

Before changing an existing Desktop database schema, Desktop keeps a verified
copy named data.db in a pre-migration-… subfolder of your Desktop data directory.
If the upgrade cannot prepare that copy, it leaves the migration unstarted.
The copy contains the database. Keep the original installation keys and files
alongside it. For recovery, stop Desktop and follow the single-file SQLite
procedure in Backup and recovery.

Air-gap mode blocks online checks and downloads, including automatic beta checks, after you apply the privacy setting and restart Desktop. A signed stable offline bundle remains available.

No account or Cloud token is needed to check public releases. A developer build without embedded release trust reports the update channel as unavailable instead of accepting an untrusted package.

On macOS, you can dismiss the native update status dialog with Close or Escape and keep working. Closing the dialog does not cancel a running check, start another check, or approve installation. Use the separate action buttons when you want to perform those operations.

For keyboard navigation, use Tab or Shift+Tab to move focus. An outline
identifies the focused control, not the active workspace page. Use Enter or
Space to expand or collapse a sidebar group.

What changed after an update

Packages that include release notes can show What’s new after a verified automatic update, once protected work has finished restoring. The notes are included in the application and do not require a Cloud connection.

Choose Got it, or close this dialog with its close button, Escape or the backdrop, to remember this version’s notes as read. Desktop waits for that choice to be saved before closing. If saving fails, the dialog stays open and explains the failure; retry the choice or use Later. Later postpones the notes, so they can appear again. Closing the application or navigating away is not an acknowledgement.

You can reopen the notes at any time through Help → What’s new…. Reading them again does not install an update or change your saved work.

Closed-beta installed application

During a download, Hide — download continues closes only the notice;
Cancel download stops the transfer. Open Update status in Desktop
settings to return to the current progress and cancellation controls. The update
block at the bottom of the sidebar also stays available on every workspace
page: it shows download progress, package verification and when the update is
ready. In a collapsed sidebar, use the icon and percentage; expand the sidebar
to read the full status. Select the block to reopen the details. Install and
restart
in the sidebar opens the notice; confirm installation there. It does
not start another download or approve a restart on its own. Quitting
the application stops an unfinished transfer. A complete retained package can
be reused by the same installation after restart: Desktop checks the signed
release information and re-verifies the saved bytes instead of downloading
them again. A different release, missing package or damaged file requires a
new download. When a complete package passes these checks after restart,
Desktop shows it as ready instead of asking you to download it again. Supported
installations offer Install and restart; otherwise use the manual path.
Your saved reminder or hidden-version choice still applies; a manual check can
show the ready package. Hiding the notice never authorizes installation.

The update notice and Desktop → About show the reason if an update action
cannot be completed. Changing the interface language also updates an open
notice, without starting a new update or saving another reminder choice.

If a release check times out or is cancelled, the notice leaves the checking
state and explains that the check failed. You can keep working and try again
later; a failed check does not authorize installation or discard a downloaded
package.

Checking signed release information does not spend Cloud’s daily installer-download allowance. Small verification files remain available after that allowance is reached; request-frequency and concurrent-transfer protection still apply.

After startup, Desktop checks signed release information without downloading the installer. You can also open Help → Check Signed Beta Update…. Desktop looks for a newer compatible beta package on GitHub first. If GitHub has only the installed version or an older one, no compatible release, or a transport outage, it checks Mockarty Cloud. It accepts the package only after verifying its Mockarty signature, exact version, platform, architecture, size and SHA-256 digest; an invalid newer GitHub package is an error, not a reason to switch sources. The check does not use your Cloud sign-in or on-prem server profile.

The update notice lets you download now, postpone the reminder for three hours, or hide this exact version. A later version can show a new notice. By default, downloading starts only after your choice; the notice shows progress and lets you cancel without installing anything. If your reminder choice cannot be saved, Desktop explains the failure and lets you retry. If a check is already running, choosing the menu action again shows its current status rather than starting another check.

An interrupted or canceled beta download can continue after restarting Desktop. Choose Return to download, then Update now. Desktop continues from saved bytes if the same signed package is still available and the source supports partial downloads. If a different package is offered or the source sends the full file, the download starts from the beginning. Desktop verifies the complete package before offering installation.

In Desktop → About, choose Check for updates to see the result of a manual signed check. A successful check without a newer compatible release shows a green status. When an update is available, open its notice to download or install the verified package. A package already downloaded for that exact signed release is reused without downloading it again. When a newer package is downloaded and verified, obsolete download packages are removed when they are not locked.

From beta 97, this screen also has Check for updates automatically (on by default) and Download updates automatically (off by default). Turning automatic checks off also turns automatic downloading off, but manual checking and downloading remain available. Preferences apply to this installation and survive restart. Automatic downloading never approves installation: you still confirm Install and restart. If preferences cannot be read or saved, background checking and downloading pause; the screen reports the failure instead of claiming the choice was saved.

If a previous update needs recovery, Desktop blocks another installation and explains why. Do not delete retained update files or packages. Ask your administrator to check the interrupted operation. If Desktop is working, you can close the notice and continue your work; closing it does not start recovery or installation.

After the download is verified, a supported installation offers Install update. Desktop protects the current work, replaces the application through its update helper and restarts. If the new application cannot become ready, recovery retains the previous application. If installation is unavailable, choose Show package and replace it manually. Your Desktop data is stored separately from the application. If GitHub is unavailable and Cloud has no newer package, Desktop reports an incomplete check rather than claiming to be up to date.

Private macOS beta builds from 0.1.0-beta.108 use the corrected verified automatic ZIP update with the Mockarty beta publisher signature. Versions 107 and earlier need one manual replacement with a current package; publishing a newer version cannot repair their installed updater. Download the current package from your Cloud cabinet, quit Desktop, replace the existing application and reopen it with the same data directory. macOS may require its normal first-open approval for this private beta. Do not disable Gatekeeper, remove security attributes or delete your local data. If the installation refuses automatic replacement, follow the manual path rather than bypassing its checks.

Automatic replacement is refused while local work is running or device-grid work lacks a confirmed completion. An unused device grid does not prevent an update. A legacy paired device may require the manual replacement path: an empty delivery queue or a disconnected device is not proof that its work finished. Save your work and stop device work before any manual replacement.

When a verified update is ready, choose how to continue:

  • Later leaves Desktop open and keeps the verified package.
  • Show package, in the arrow menu, opens the already verified download for
    manual replacement. It remains available if automatic restart is refused;
    downloading the same package again is not necessary.
  • Save and update protects supported drafts before preparing the restart.
  • Update anyway, in the arrow menu beside Save and update, opens a
    separate warning. Desktop first tries to protect supported drafts and restore
    their screen, but recovery is not guaranteed. Unsupported or unconfirmed edits
    may be lost. Already saved data is not deleted. If preparation or installation
    fails, Desktop does not clear your open editors. After a successful update,
    Desktop restores protected work when possible; otherwise it opens its settings
    rather than claiming to have restored unprotected work.

Confirm loss only after reviewing your current work. Changing the page, Space or
edits invalidates that confirmation. A failed attempt never switches from saving
to discarding automatically; choose again. This option does not override package
verification, compatibility, interrupted-update recovery or running-work checks.
If running-work checks refuse restart, Desktop explains that separately from
draft-saving failures. Save your work and stop active tasks before using the
manual replacement path.
If saving is waiting for an editor or active work, Back to update options
stops preparation without deleting the verified package. You can then postpone
the update or review the separate no-save warning.

Not every screen currently supports Save and update. If Desktop
cannot prepare an update from the current page, first save your changes and
wait for active work to finish. Then open Mocks or API Tester and reopen
the update notice. Checking for an update and downloading its package do not
require leaving the current page. Do not delete a verified download to resolve
a restart-preparation refusal.

A loaded, read-only Test Runs list also supports preparing a restart. Close
its reports and dialogs first. Search text, selected rows and unfinished actions
are not update drafts. If this page has started or changed a run, schedule or
report, finish that work and prepare the update from Mocks instead. Refreshing
the list alone does not confirm the outcome of an operation.

A loaded Stores → Global Store view can prepare a restart if you have only
read its contents. Keep the new-entry fields empty and close inline editors and
other dialogs first. Other Stores tabs and edits are not protected update drafts.
After attempting a write, finish and verify that operation, then prepare the
update from Mocks instead; refreshing the table is not confirmation of an
uncertain write. A background refresh does not replace an open inline editor.
If a Global Store inline save cannot be confirmed, Desktop checks the saved
value once without resending the write. If the result is still uncertain, your
text stays in the editor and Save is disabled. Copy it before cancelling the
edit, reload the store and check its actual value before making another change.
When a previously suspended Stores page is restored, a clean Global Store view
reads its contents again. Open editors and uncertain saves are not cleared.
An update confirmation from before leaving the page cannot be reused: reopen
the update notice and prepare a new attempt.

If preparation cannot confirm that an API Tester draft was protected, installation stays blocked and the editor remains available. Keep the editor open and save your work before closing or reloading it. A delayed confirmation does not restart installation automatically: you must choose to try again. Desktop does not resend an unconfirmed draft merely because preparation timed out.

An unsent Assistant task can also be protected for an update while its
Cloud connection and selected Space remain valid. Its title and prompt are
restored into the task window after restart; the task is not started.
An HTTP request draft and an unsent task can be retained together. Other
unsaved forms still require saving or an explicit discard before installation.

For manual recovery, open Assistant task in the same profile and Space
with an empty title and prompt, then choose Recover protected draft.
Review the recovered text before starting the task. Existing edits and an
already submitted or unconfirmed task are never replaced. A large draft may
not fit protected storage: Desktop explains the refusal and keeps its text
unchanged. Save that text separately before updating. A protected copy expires
after 30 minutes; it is not a permanent backup or browser-stored draft.

You can prepare an update while reading Documentation. The current article
and a valid section heading are retained. The sidebar search is only a view
filter, not a saved draft; enter the filter again after restart if needed.
Unsaved work in another open form still blocks preparation. Desktop never
submits a form merely to make an update possible.

If the editor was already reloaded, open the same Desktop profile and Space and select the original HTTP request (or the empty HTTP editor for a standalone draft). A notice with Restore draft appears only when Desktop confirms that a matching protected copy is available. Recovery starts only when you choose it and does not replace different unsaved edits. Save current edits first. A recovered draft is still unsaved: save the request to keep it. If restoration cannot be confirmed, check the request and save the edits you need; that attempt does not delete the saved copy. An unconfirmed application is not offered as a blind retry. Protected update drafts expire after 30 minutes and are not a permanent backup. Request contents and credentials are not stored in browser storage for this recovery.

If you leave the editor while recovery is pending, returning shows an unconfirmed-recovery notice rather than resuming automatically. Follow that notice; a late reply does not confirm restoration into the newly opened editor. A success message applies only to the editor where recovery completed.

An installed or older GitHub beta that predates the signed-package format does not block checking Cloud. A newer GitHub beta without the required signature files is rejected.

On macOS, choose Show package before quitting, save your work, then fully quit Desktop: closing its window alone may leave it running. Open the downloaded DMG and drag Mockarty.app into the folder containing your existing application (normally Applications). Choose Replace, not Keep Both, and reopen the installed application rather than the copy inside the DMG. Do not remove your Desktop data directory. Keep a backup of your data before updating: replacing the application with an older version does not roll back database changes.

If a previous ZIP installed mockarty-desktop.app and that folder has no Mockarty.app, rename the old application to Mockarty.app after quitting it; then install the new one and choose Replace. If both copies already exist, first identify your main installation. Do not blindly overwrite or delete them. New ZIP and DMG packages use the same Mockarty.app name.

If Desktop cannot confirm that an app started by the update has stopped, it keeps both packages and stops the automatic recovery. Follow the manual recovery message and preserve the Desktop data directory.

Stable-channel offline update

In a stable installed application, choose Help → Import Offline Update, then select the bundle directory containing metadata/ and package/. The offline path applies the same metadata, signature, platform, channel, size, and file-identity checks as the online path. Copy the complete bundle without modifying or renaming its files. The closed-beta menu does not offer this stable bundle action; use its verified downloaded package for manual installation as described above.

Use a stable-channel update mirror

The normal way to choose a stable-channel mirror is the Mirror URL field in Desktop → About (server-hosted build). The value is saved for the current installation and always wins. After changing the mirror, check for updates again. A pending package from the previous source needs a fresh download. If Desktop cannot confirm that the address was saved, select Retry to read the saved source before attempting another change.

Advanced/headless option: set MOCKARTY_UPDATE_FEED_URL before the first start of Desktop to seed the saved mirror. Use an HTTPS origin such as https://updates.example.com/desktop. Plain http:// is accepted only for the same machine or a private-network host, such as http://127.0.0.1:9000 or http://10.0.0.5/desktop. Closed-beta update checks use the pinned GitHub and Mockarty Cloud sources instead of this stable-channel mirror. Once a mirror is saved, the variable is no longer consulted.

The installed native app does not show the server-hosted Mirror URL editor in Settings. For that build the environment variable seeds the saved mirror on the first start; afterwards the saved value wins. It is an advanced/headless setting: set it in the launcher, service unit or container environment, not in the app.

The mirror serves the same signed release documents and packages as the public feed, so controlling the mirror is not enough to publish a forged update:

<mirror>/repos/mockarty/releases/releases/latest        release listing
<mirror>/repos/mockarty/releases/commits/<tag>          {"sha":"…"}
<mirror>/repos/mockarty/releases/releases/assets/<id>   packages, signatures, manifests, metadata

The mockarty-desktop-index mirror tool writes this static tree from a published release snapshot, its package assets, and its metadata directory. Serve the output directory with any static HTTPS server, or with a local/private HTTP server for an acceptance test. To test an installed native application against this mirror, set the variable before launching with a new, separate Desktop data directory.

Server-hosted Desktop build

The server-hosted build, opened in a browser instead of installed as the native application, uses Desktop → About.

  1. Choose Check for updates. The build immediately asks its configured source and shows either Up to date, Update available: X.Y.Z, or the current failure.
  2. Choose Download update. The binary is downloaded and checked against its SHA-256 digest and Mockarty release signature.
  3. Choose Install & restart when in-place replacement is supported. A macOS application bundle instead offers the new installer.

Up to date appears only after a successful check. Before the first check, if the updater is unavailable, or if the latest check failed, the page names that state instead of claiming the installed version is current.

This build checks about every six hours unless air-gap mode disables update networking. Its Mirror URL field in Desktop → About is the normal control and saves a mirror for the current installation; the saved value always wins. MOCKARTY_UPDATE_FEED_URL only seeds an unset mirror on the first start and never overrides a saved value. The editor stays unavailable until Desktop reads the saved source. If that read fails, use Retry; an empty form cannot silently replace the saved mirror.

Its simpler mirror layout is:

<mirror>/releases/latest
<mirror>/download/<version>/mockarty-desktop-<os>-<arch>
<mirror>/download/<version>/mockarty-desktop-<os>-<arch>.sha256
<mirror>/download/<version>/mockarty-desktop-<os>-<arch>.sig

Do not use this layout for the installed native application; use the signed release-document layout from the previous section.

Keep your Cloud sign-in when updating

Updating preserves your local data. If you manually install an older application,
automatic updates may become unavailable. Use a supported newer version or ask
your administrator for help. Do not delete update recovery files, saved credentials
or local data to work around a refused update.

Quit Desktop, replace the application, then start it with the same data directory
and operating-system user. Keep the saved connection profile and its persistent
credential in the operating-system credential store. Updating the application
does not require another Cloud login; a revoked device, expired session or removed
credential can still require signing in again. Do not delete local data or sign
out as part of an ordinary update.

Use a separate Desktop data directory

By default Desktop keeps its local database, activation, privacy settings, connection profiles, window state, and update recovery data under ~/.mockarty. To keep a managed installation or a validation copy separate, set MOCKARTY_DESKTOP_DATA_DIR before starting Desktop.

The value must be an absolute path to a directory other than the filesystem root. Existing path components must not be symbolic links. Desktop creates the directory when needed; an invalid value stops startup instead of silently using ~/.mockarty.

Do not point two running Desktop processes at the same data directory. Back up the complete directory together: copying only the database does not preserve activation, privacy, or update-recovery state. Persistent connection secrets stay in the operating-system credential store and must be recovered separately.