2

我在 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]
4

1 回答 1

2

经过一番挣扎,终于弄明白了。

使用 Cygwin,我能够获得解压缩的副本,我将其放入 Program Files (x86)\Drush\GnuWin32\bin 目录(位于我的 PATH 环境变量中)。这清除了列出的有关解压缩的错误。

至于 mime 类型问题,我必须手动编辑 include/drush.inc 以添加'.js' => 'application/javascript'到 $extension_mimetype 数组。请参阅http://drupal.org/node/1825946了解导致我这样做的讨论。

于 2013-04-08T21:37:29.540 回答