Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Compatibility #10

Merged
merged 8 commits into from
Jul 25, 2013
Merged

Windows Compatibility #10

merged 8 commits into from
Jul 25, 2013

Conversation

ehrlich-b
Copy link
Contributor

Added node dependencies:
Archiver - Used for zipping
BufferStream - Used to stream the output of the archiver into memory
Wrench - No hassle recursive file operations

Removed dependencies:
*NIX operating system
zip command line utility

I had to upgrade the node min version from 0.6.x to 0.7.x because of the new "fs" operations. I have tested these changes (using text/index.js) on both Windows 7 and Ubuntu 12.04. Both were able to produce a crx file that could be installed in Chrome. I upgraded the package from 0.2.9 -> 0.3.0, because this is a pretty big change and it will break people using very old versions of node.

Other misc. things:
Keygen from the command line wasn't working because commander doesn't provide a callback as the second parameter - this is fixed
I changed path.exists to fs.exists to get rid of a deprecated warning
I added "manifest_version": 2 to your example extension - this is required in the latest versions of chrome

Let me know if you need me to change anything, or if you see any problems.

Add ncp dependency and implement recursive copy with ncp
Use path join for portability
Use path join in test.
New dependencies:
* wrench - for easy recursive file operations
* archiver - tool to zip files
* buggerstream - in memory data stream to write archiver data

Removed dependencies:
* (*nix) operating system
* zip command

The rest of the path joins using + were found and fixed.
Remove zip dependency
Update example javascript to use cross-platform join rather than plus to
concat directories
Calling keygen from the command line was broken, because cb() is filled
in by commander but it is not a function
Rename path.exists to fs.exists to remove deprecated warning
jed added a commit that referenced this pull request Jul 25, 2013
@jed jed merged commit 96c0c73 into thom4parisot:master Jul 25, 2013
@jed
Copy link
Contributor

jed commented Jul 25, 2013

thanks, @ADotOut! now in in npm as v.04.

@ehrlich-b ehrlich-b mentioned this pull request Nov 2, 2014
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.

2 participants