A desktop coding agent with free access to frontier models.
TypeScript
fix(updater): wrap the install command and save packages to ~/Downloads
ogsamrat05410630f190
diff --git a/apps/app/src/react-app/shell/install-command.tsx b/apps/app/src/react-app/shell/install-command.tsxindex 17520f6b..c7e54261 100644--- a/apps/app/src/react-app/shell/install-command.tsx+++ b/apps/app/src/react-app/shell/install-command.tsx@@ -6,8 +6,8 @@ export function InstallCommand(props: { command: string; onShowFile?: (() => voireturn (<div data-testid="update-install-command" className="mt-4 w-full"><pre className={dark- ? "overflow-x-auto rounded-xl border border-white/10 bg-black/40 px-3 py-2 font-mono text-xs text-emerald-100 select-text"- : "overflow-x-auto rounded-lg border border-border bg-muted px-3 py-2 font-mono text-xs text-foreground select-text"}+ ? "whitespace-pre-wrap break-all rounded-xl border border-white/10 bg-black/40 px-3 py-2 font-mono text-xs text-emerald-100 select-text"+ : "whitespace-pre-wrap break-all rounded-lg border border-border bg-muted px-3 py-2 font-mono text-xs text-foreground select-text"}>{props.command}</pre>{props.onShowFile ? (<buttondiff --git a/apps/desktop/electron/updater.mjs b/apps/desktop/electron/updater.mjsindex 8c713408..f16557e6 100644--- a/apps/desktop/electron/updater.mjs+++ b/apps/desktop/electron/updater.mjs@@ -1136,6 +1136,14 @@ export function registerUpdaterIpc({}}));+ /** Downloads; ~/Downloads where the desktop names no download folder (Electron then answers home). */+ async function packageDownloadDirectory() {+ const downloads = app.getPath("downloads");+ if (downloads !== app.getPath("home")) return downloads;+ const fallback = path.join(downloads, "Downloads");+ return (await fileExists(fallback)) ? fallback : downloads;+ }+/** The downloaded package and its install command (package mode only). */function downloadedPackageDetails(installMode) {if (installMode !== "package") return {};@@ -1162,7 +1170,7 @@ export function registerUpdaterIpc({}if (installMode === "package") {downloadedInstallerPath = await downloadManualInstaller(checkedInstallerArtifact, {- directory: app.getPath("downloads"),+ directory: await packageDownloadDirectory(),});} else {downloadedInstallerPath = await downloadManualInstaller(checkedInstallerArtifact);