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

Archive broken on OSX Mountain Lion #1

Closed
cielavenir opened this issue Feb 4, 2013 · 3 comments
Closed

Archive broken on OSX Mountain Lion #1

cielavenir opened this issue Feb 4, 2013 · 3 comments

Comments

@cielavenir
Copy link

I'm developing a Chrome/Safari extension.
https://code.google.com/p/ctouch/source/browse/

Please check Makefile and support/safari.rb.
This script works on Debian Linux, but fails on OSX Mountain Lion.
It seems archive was created, but when xar -xf,
Error while extracting archive:(ctouch.safariextension/ctouch_bootstrap.js): Error decompressing file (Undefined error: 0)

For your sake, otool -L is:
/opt/local/lib/liblzma.5.dylib (compatibility version 6.0.0, current version 6.4.0)
/opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.7)
/opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libxml2.2.dylib (compatibility version 11.0.0, current version 11.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)

@mackyle
Copy link
Owner

mackyle commented Feb 4, 2013

@cielavenir
Copy link
Author

mackyle, I don't know anything other than
Error while extracting archive:(ctouch.safariextension/ctouch_bootstrap.js): Error decompressing file (Undefined error: 0)

From this message what can I do?
~/bin/xar -cf ctouch.safariextz
is ok.
~/bin/xar --sign -f "ctouch.safariextz" --digestinfo-to-sign sha1.dat --sig-size 256 --cert-loc pem/ctouch_safari.der --cert-loc certs/appleca --cert-loc certs/rootca
corrupts the archive content.

@cielavenir
Copy link
Author

Very sorry, adding --distribution switch worked.
https://code.google.com/p/xar/issues/detail?id=76#c20
I should have read original thread...

Now xar -xf ctouch.safariextz doesn't complain and Safari is also fine.
This thread can be closed now...

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

No branches or pull requests

2 participants