Skip to content

fix: second build fails with DirectoryNotFoundException#25

Merged
JusterZhu merged 2 commits into
mainfrom
fix/double-build-zip
May 20, 2026
Merged

fix: second build fails with DirectoryNotFoundException#25
JusterZhu merged 2 commits into
mainfrom
fix/double-build-zip

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Root cause: after first build, Config.OutputPath was written with the .zip file path (e.g. C:\Users\...\patch.zip). On second build, it was used as the output directory, resulting in path like C:\...\patch.zip\patch.zip.

Fix: remove Config.OutputPath = zip assignment after build completes. OutputPath stays as the user-selected directory (or empty → falls back to Desktop).

JusterZhu added 2 commits May 20, 2026 20:23
- Replace emoji with PathGeometry icons (Sun/Moon/Globe)
- Theme: Moon icon in light mode, Sun icon in dark mode (toggled via IsDarkTheme)
- Locale: Globe icon overlay with EN/中 text label
- Remove ThemeButtonText emoji property from ViewModel
…d failure

- After first build, OutputPath was set to the .zip file path
- Second build used it as a directory, creating a broken path
- Fix: don't overwrite OutputPath with .zip, keep it as directory only
Copilot AI review requested due to automatic review settings May 20, 2026 12:36
@JusterZhu JusterZhu merged commit 1156daf into main May 20, 2026
1 check failed
@JusterZhu JusterZhu deleted the fix/double-build-zip branch May 20, 2026 12:38
@JusterZhu JusterZhu review requested due to automatic review settings May 20, 2026 13:00
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.

1 participant