Closed inakiabt closed 9 years ago
Yep. I'm also getting empty files for module-a
and module-c
.
Are you getting empty files too?
Argh. Yes.
The ‘culprit’ is in fact v0.4.7 of adm-zip
. If you install v0.4.6 it works perfectly. I’ll look into it.
I’ll just fix the version to 0.4.6
. adm-zip
is not enough solid.
jszip
looks way less naïve, with actually working tests. I’ll move titaniumifier ASAP.
In the meanwhile you can work by running npm install adm-zip 0.4.6
That worked :+1:
A clean install should work.
$ git clone git@github.com:smclab/titaniumifier.git
$ cd titaniumifier
$ npm install
$ grunt titanium # opens the iOS simulator
I also release v1.3.3 with the pinned adm-zip
so you can rm -rf node_modules && npm i
in the project you were working on and everything should work correctly.
Please let me know.
I don't know if is my environment, but somehow when unzipping the zip file generated by
titaniumifier
withgrunt-zip
I get all files empty:Unzipping manually with
unzip
cli works as expected.Here's my
Gruntfile.js
I found that unzipping it with
unzip
cli, zip the result module folder withzip
cli and then unzip it again withgrunt unzip:mod
works as expected too.Also I tried your
Gruntfile.js
from https://github.com/smclab/grunt-titaniumifier/blob/master/Gruntfile.js and I get empty files too after rungrunt test:ios
.Could be an incompatibility between
adm-zip
(used bytitaniumifier
) andjszip
(used bygrunt-zip
)? I found thisadm-zip
issue https://github.com/cthackers/adm-zip/issues/102 but I guess is not related.Unzipping the zip file generated by
titaniumifier
programmatically withadm-zip
works as expected: