Skip to content

[WIP] Fix WebView2Loader.dll not found issue during launch#44

Closed
Finesssee with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-webview2loader-dll-not-found
Closed

[WIP] Fix WebView2Loader.dll not found issue during launch#44
Finesssee with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-webview2loader-dll-not-found

Conversation

Copilot AI commented Apr 29, 2026

Copy link
Copy Markdown

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

Fix issue #43 in repository Finesssee/Win-CodexBar.

Issue: WebView2Loader.dll was not found
Link: #43

Observed behavior:

  • After updating to version v0.23.2, launching codexbar.exe fails with a Windows system error saying WebView2Loader.dll was not found.
  • The issue is reproducible with both the installer build and the portable build.
  • It also reproduces after a clean installation.

Relevant repository context:

  • AGENTS.md says the active desktop app is the Tauri shell in apps/desktop-tauri/, and when docs conflict, trust the Tauri desktop sources plus shared Rust sources.
  • The installer packaging currently appears to include codexbar.exe and icon.ico, but not WebView2Loader.dll. In particular, rust/installer/codexbar.iss has:
    • Source: "{#TargetBinDir}\codexbar.exe"; DestDir: "{app}"; Flags: ignoreversion
    • Source: "..\icons\icon.ico"; DestDir: "{app}"; Flags: ignoreversion
    • no sidecar entry for WebView2Loader.dll
  • The README currently lists the portable artifact as a single exe (codexbar-desktop-tauri.exe), which may also be omitting required runtime sidecars.

Requested outcome:

  • Ensure release artifacts for the Windows Tauri desktop app include any required WebView2 runtime loader sidecar(s), especially WebView2Loader.dll, so the app launches correctly after install/update and in the portable distribution.
  • Update the packaging/build/release flow in the most appropriate place(s) in this repo so both installer and portable distribution are fixed, not just local dev runs.
  • If the correct fix is broader than a single DLL (for example, copying all required Tauri/WebView2 sidecars from the built output directory), implement the robust fix instead of a narrow hardcoded workaround.
  • Update any relevant user-facing docs/release artifact descriptions if needed so the portable distribution is accurately described.

Constraints/guidance:

  • Keep changes scoped to this packaging/runtime artifact problem.
  • Prefer the active Tauri desktop sources and packaging flow over legacy/historical paths.
  • Avoid adding unnecessary dependencies or unrelated refactors.
  • Include tests or validation updates where practical, and document what was validated in the PR.

Please create a pull request with the fix.

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: fix this

Assistant: I can fix it, but to actually make the change I need you to explicitly ask me to open a PR in the repo.

What I found:

  • Issue WebView2Loader.dll was not found #43 is about WebView2Loader.dll missing in v0.23.2.
  • The app is a Tauri desktop app, so this DLL is likely required at runtime.
  • Your installer script currently includes codexbar.exe and icon.ico, but I don’t see WebView2Loader.dll being packaged in the Inno installer.
  • The portable artifact listed in the README is just the .exe, which also strongly suggests the DLL sidecar is being omitted there too.

Most likely fix:

  • Include WebView2Loader.dll alongside codexbar.exe in:
    • the installer package
    • the portable release artifact
  • Verify the Tauri build output path for where that DLL is produced, then update packaging scripts accordingly.

If you want, reply with:

Open a PR to fix issue #43 in Finesssee/Win-CodexBar

and I’ll create it.

User: go

Assistant: I’m waiting for your response to the confirmation dialog so I can continue.

This pull request was created from Copilot chat.

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