Skip to content

Conversation

@deepanshurajput0
Copy link

Summary

This PR fixes the build script so it works on Windows environments.


Problem

The current build script uses the Unix-only cp command, which causes the build to fail on Windows. As a result, files including icons/, manifest.json, and popup.html are not copied into the dist/ folder, and Chrome fails to load the extension.


Solution

Replaced the Unix-specific cp commands with the cross-platform cpy package:

"build": "npm run sync-version && tsc && cpy src/manifest.json dist/ && cpy src/popup.html dist/ && cpy src/icons/**/* dist/icons/"

This ensures the build works on Windows while preserving existing behavior on macOS/Linux.


Tested Environment

  • OS: Windows 11
  • Node.js: v22.12.0
  • npm: 10.9.0

References

Fixes #15



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.

Build script uses Unix-only cp, fails on Windows

1 participant