Skip to content

auto updating#15

Merged
ValentinRapp merged 2 commits into
mainfrom
dev
Jun 6, 2026
Merged

auto updating#15
ValentinRapp merged 2 commits into
mainfrom
dev

Conversation

@ValentinRapp

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 6, 2026 12:57
@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yafw Ready Ready Preview, Comment Jun 6, 2026 12:57pm

@ValentinRapp ValentinRapp merged commit 08ce1f4 into main Jun 6, 2026
7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an automatic update check/flow for the standalone (Electrobun) build, including a dedicated “Updating” UI state and a backend RPC endpoint to download/apply updates.

Changes:

  • Extend the Electrobun RPC schema with an update request and implement its handler in the Bun backend.
  • Add an “Updating” screen and conditionally render it in the main React app when an update is in progress.
  • Update Electrobun configuration for release/versioning.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/shared/types.ts Adds the update RPC contract to the shared RPC type schema.
src/mainview/components/Updating.tsx New updating/loading UI component.
src/mainview/App.tsx Calls update RPC on startup (standalone, non-macOS) and switches UI into updating mode.
src/bun/updater.ts Implements the backend update download/apply routine.
src/bun/index.ts Adds an RPC handler that checks for updates and triggers the updater routine.
electrobun.config.ts Updates app version and adds release baseUrl configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/shared/types.ts
Comment on lines +47 to +52
update: {
params: {};
response: {
updating: boolean;
};
};
Comment thread src/mainview/App.tsx
Comment on lines 18 to +23
handleFileSelect,
handleNativeBrowse,
handleChangeVideo,
} = editorState;
const { electroview, isStandalone } = useElectrobun();
const [isUpdating, setIsUpdating] = useState(false);
Comment thread src/bun/index.ts
Comment on lines +260 to +270
update: async () => {
console.log("[YAFW] update check called");
try {
const check = await Updater.checkForUpdate();
const updating = !!check.updateAvailable;
updating && update(); // Don't await, run in background
return { updating };
} catch (err) {
console.error("[YAFW] update RPC handler failed:", err);
return { updating: false };
}
Comment thread electrobun.config.ts
Comment on lines 5 to 8
name: "yafw",
identifier: "yafw.electrobun.dev",
version: "0.0.1",
version: "0.7",
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants