Conversation
… use app data dir as project root Co-authored-by: SpiZeak <22522734+SpiZeak@users.noreply.github.com> Agent-Logs-Url: https://github.com/SpiZeak/DevWP/sessions/83b9e520-421c-4db9-874c-bab12bb650ac
Copilot
AI
changed the title
[WIP] Fix Docker Compose configuration file not found in Windows build
Fix Windows build: bundle compose.yml and config/ as Tauri resources, bootstrap to app data dir at startup
Mar 24, 2026
PR Checks Summary
✅ All checks must pass before merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On production installs (Windows especially),
compose.ymlandconfig/don't exist anywhere on the user's machine, so the CWD walk-up inproject_root()always falls back empty and Docker Compose fails immediately.Changes
tauri.conf.json— addsbundle.resourcesmapping to includecompose.ymlandconfig/{nginx,php,mariadb}in the app bundle.utils.rs— introduces astatic PROJECT_ROOT: OnceLock<PathBuf>andinit_project_root(path).project_root()returns the stored value when initialized; falls back to the CWD walk-up only in dev/test contexts.lib.rs— duringsetup(), resolvesapp.path().app_data_dir(), bootstraps missing bundled resources into it on first run (skipping existing files to preserve user customizations), then callsinit_project_root():On first launch,
compose.ymland the core config tree are copied to (e.g.)%APPDATA%\com.devwp.app\. All subsequent Docker Compose operations run from that stable, writable location on every platform.Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.