3
Trying to install node.js via composer (for automation).
"repositories": [
"type": "package",
"package": {
"name": "nodejs/nodejs",
"version": "0.12.6",
"dist": {
"type": "gzip",
"url": "https://nodejs.org/dist/v0.12.6/node-v0.12.6-linux-x64.tar.gz"
}
}
}
],
"require": {
"nodejs/nodejs": "0.12.*"
}
Problem is, I can either use tar
or gzip
to unpack the archieve.
Available types: git, svn, hg, perforce, zip, rar, tar, gzip, phar, file.
The nodejs package obviously uses both.
How can I unpack .tar.gz
packed files using composer?
I know I could use post-update-cmd
and post-install-cmd
commands and manually execute untar/gunzip, but that's not the way composer is ment to be.
Doesn't it use tar with the -z flag? – Hennes – 2015-07-06T09:56:19.237
When using "tar", nothing gets unpacked, when I use "gzip", it does not untar. – Daniel W. – 2015-07-06T09:57:54.770
'tar' just installed and unpacked a tar.gz from google code archive fine for me. good thing, too - no more repo access on google code and some projects have not yet moved elsewhere! – Joey T – 2016-08-18T22:47:50.990
The same use-case to install the Ace editor via composer from https://github.com/ajaxorg/ace/archive/v1.2.6.tar.gz
– Xavi Montero – 2017-04-14T01:25:40.783