thom4parisot / grunt-crx

Grunt task used to package private Chrome Extensions.
https://npmjs.com/grunt-crx
MIT License
118 stars 21 forks source link

~ in privateKey does not work #11

Closed rektide closed 11 years ago

rektide commented 11 years ago

From the tail of my strace -f -e trace=file grunt:

stat("~/.ssh/chrome-apps.pem", 0x7fff25cec6d0) = -1 ENOENT (No such file or directory)

yet:

ls ~/.ssh/chrome-apps.pem -l -rwx------ 1 rektide rektide 1090 2013-03-06 22:20:14 -0500 /home/rektide/.ssh/chrome-apps.pem*

The ~ in the privateKey option needs to be converted into the users home directory. Opening a file with ~ in it does not work.

thom4parisot commented 11 years ago

Hi, this means that ~ is not resolved by grunt filepath expand library.

I've quickly digged into and I can't find the user dir in any documentation.

thom4parisot commented 11 years ago

Will be available in 0.2.1 in a couple of minutes then :-)