Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Emanuele-web04/dpcode/llms.txt

Use this file to discover all available pages before exploring further.

The DP Code desktop app updates itself automatically using electron-updater and GitHub Releases. After a new version is published, the app downloads it in the background and prompts you to restart — no manual download required. Updates are disabled in development builds and in Linux installs that are not running the AppImage.

How updates are delivered

New versions of the desktop app are published to the GitHub Releases page. Before each update check, the app fetches the list of releases from the GitHub API and picks the highest stable semver tag (ignoring drafts and pre-releases). It then points electron-updater directly at the release artifact for that tag, which means downloads are always full packages rather than differential patches.
Only stable releases (tags matching vMAJOR.MINOR.PATCH) are considered. Pre-release and draft releases are skipped automatically.

Update states

The updater moves through a set of states that are surfaced to the UI over Electron IPC:
StateMeaning
disabledAutomatic updates are not available (see when updates are disabled).
idleUpdates are enabled. No check has run yet.
checkingThe app is contacting the GitHub API and comparing versions.
up-to-dateThe last check completed and no newer version was found.
availableA newer version was found. Download has not started yet.
downloadingThe update package is being downloaded. Progress is reported in 10% increments.
downloadedThe update is fully downloaded and ready to install.
errorSomething went wrong during the check or download. The errorContext field indicates whether it was a check, download, or install failure.

Update flow

1

Startup check

Fifteen seconds after launch, the app performs its first update check. The delay prevents the update network request from competing with backend startup.
2

Periodic poll

After the initial check, the app checks for updates every 4 hours while running.
3

Foreground recheck

When you bring the app back into focus after it has been in the background for at least 30 seconds, and more than 5 minutes have passed since the last check, a new check runs automatically.
4

Download in background

If an update is available, you can choose to download it. The download runs in the background and reports progress to the UI. If the download fails, the updater returns to the available state so you can retry.
5

Restart to install

Once the download completes (downloaded state), you are prompted to restart. The app stops the embedded Node.js server, then calls autoUpdater.quitAndInstall() to apply the update and relaunch.

Checking for updates manually

You can trigger a manual update check at any time from the application menu:
Open the DP Code menu in the menu bar and click Check for Updates….
If you are already on the latest version, a dialog confirms this. If the check fails, a dialog shows the error message so you can diagnose the issue.

When updates are disabled

Automatic updates are disabled under certain conditions. When updates are disabled, the updater state is set to disabled and manual checks show an explanatory dialog.
ConditionReason shown
No update feed configured”Automatic updates are not available because no update feed is configured.”
Running a development build”Automatic updates are only available in packaged production builds.”
T3CODE_DISABLE_AUTO_UPDATE=1 is set”Automatic updates are disabled by the T3CODE_DISABLE_AUTO_UPDATE setting.”
Linux, not using the AppImage build”Automatic updates on Linux require running the AppImage build.”
If you installed DP Code on Linux by extracting the archive manually rather than using the AppImage, automatic updates will not work. Download the .AppImage file from the Releases page to get updates.

Environment variables

VariableEffect
T3CODE_DISABLE_AUTO_UPDATE=1Disables automatic updates for this session.
T3CODE_DESKTOP_UPDATE_GITHUB_TOKENGitHub personal access token used for authenticated release API requests. Useful if you hit rate limits. Also falls back to GH_TOKEN.

Apple Silicon and architecture switching

If you are running the Intel (x64) build of DP Code on an Apple Silicon Mac, the updater detects this and logs a notice at startup. The next update will download and install the native arm64 build, switching you to the correct architecture automatically.

Retry behavior

If a download fails, the canRetry flag is set to true when a known available version exists, so you can retry without running a full check again. If a check itself fails (for example, due to a network error), the error state also sets canRetry: true.
If updates consistently fail, check your network connection and verify that api.github.com is reachable. A GitHub personal access token set in T3CODE_DESKTOP_UPDATE_GITHUB_TOKEN can help if you are hitting the unauthenticated API rate limit (60 requests per hour per IP).

Build docs developers (and LLMs) love