Skip to content

Harden Windows release packaging#33

Draft
CoreyRDean wants to merge 1 commit into
developfrom
fix/windows-publish-optional-dirs
Draft

Harden Windows release packaging#33
CoreyRDean wants to merge 1 commit into
developfrom
fix/windows-publish-optional-dirs

Conversation

@CoreyRDean
Copy link
Copy Markdown
Collaborator

Non-technical summary

This hardens the Windows release packaging path so publish.bat stops on real packaging failures and no longer tries to copy optional artifacts that are not present. That matters now because the repo’s Windows publisher should be as trustworthy as the Unix publisher when maintainers cut release archives.

Technical summary

  • make publish.bat fail fast if compile.bat fails instead of continuing into archive staging
  • add a :copy_tree_if_exists helper so release packaging only copies directories that are actually present
  • guard the optional VS Code extension copy so an existing extras checkout without a built .vsix is treated as optional instead of producing a noisy wildcard copy failure
  • check archive staging copy failures before invoking Compress-Archive
  • rewrite the generated release\\README.txt content without literal quote characters and align the wording with the Unix publisher more closely

Additional notes

Trade-offs: validation on this macOS host is static only for the batch script because cmd.exe is not available here.

Follow-up intentionally deferred: there is still no repo-local automated Windows batch regression harness; hosted Windows CI remains the stronger proof path for runtime execution of publish.bat.

Breaking changes: none.

@CoreyRDean CoreyRDean added the bug Something isn't working label May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant