我在Windows 2008 R2 Enterprise上安装了Drush 5.8,其中包括除远程管理之外的所有选项。
每当我运行drush make
时,我都会收到错误,因为它无法解压缩github存档文件,也无法确定js文件的mime类型。这是我的make文件和输出。我不确定这里有什么问题,并且会喜欢你可能有的任何指示。
制作文件:
; Drupal 7 core
core = 7.x
api = 2
projects[drupal][version] = 7
; Libraries
; --------
libraries[colorbox][download][type] = "get"
libraries[colorbox][download][url] = "https://github.com/jackmoore/colorbox/archive/1.4.8.zip"
libraries[colorbox][directory_name] = colorbox
libraries[colorbox][destination] = libraries
libraries[zepto][download][type] = "get"
libraries[zepto][download][url] = "http://zeptojs.com/zepto.min.js"
libraries[zepto][directory_name] = zepto
libraries[zepto][destination] = libraries
输出:
C:\Users\Administrator\Desktop\drush>drush make test.make testing
Could not locate drupal version 7, will try to download latest recommended or supported release. [warning]
drupal-7.21 downloaded. [ok]
colorbox downloaded from https://github.com/jackmoore/colorbox/archive/1.4.8.zip. [ok]
Unable to unzip C:\Users\ADMINI~1\AppData\Local\Temp\1/make_tmp_1364915473_515af511066a2/1.4.8.zip. [error]
zepto downloaded from http://zeptojs.com/zepto.min.js. [ok]
Unable to determine mime type for zepto.min.js. [error]
答案 0 :(得分:2)
经过多次努力,终于搞清楚了。
使用Cygwin我能够获得一个unzip的副本,我把它放在Program Files(x86)\ Drush \ GnuWin32 \ bin目录中(在我的PATH环境变量中)。这清除了列出的关于解压缩的错误。
至于mime类型的问题,我不得不手动编辑include / drush.inc以将'.js' => 'application/javascript'
添加到$ extension_mimetype数组。有关引导我的讨论,请参阅http://drupal.org/node/1825946。