A2UI icon indicating copy to clipboard operation
A2UI copied to clipboard

fix: resolve windows command syntax error in lit:copy-spec

Open Dijo-404 opened this issue 1 month ago • 2 comments

Changes

This is a fix for issue: cant run frontend error in renderers\lit:copy-spec] #315

  • Added shx as a devDependency: Added this cross-platform wrapper to provide Unix shell command compatibility on Windows, ensuring build scripts run across all operating systems.
  • Updated the copy-spec command:
    • From: "mkdir -p src/0.8/schemas && cp ../../specification/0.8/json/*.json src/0.8/schemas"
    • To: "shx mkdir -p src/0.8/schemas && shx cp ../../specification/0.8/json/*.json src/0.8/schemas"

Verification

  • Verified that the script executes successfully on Windows environments using cmd.exe.
  • Confirmed that functionality remains unchanged on Unix-based systems (Linux/Arch).

Dijo-404 avatar Dec 17 '25 17:12 Dijo-404

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Dec 17 '25 17:12 google-cla[bot]

Thank you, it helps!

SimonLai-28198 avatar Dec 23 '25 01:12 SimonLai-28198