diff --git a/.travis.yml b/.travis.yml index f687af3..ad6ba2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,12 @@ sudo: required language: node_js node_js: - - '4' - '5' - '6' + - '7' + - '8' + - '9' + - '10' matrix: fast_finish: true addons: diff --git a/README.md b/README.md index 6880608..5dba438 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,17 @@ to `libblp.dll` and ensure it ends up on the load PATH. By default, node-gyp compiles ffi for x64 so make sure `libblp.dll` matches this architecture. +#### Ubuntu, Debian + +```shell +sudo apt-get install cmake git gcc +git clone git://github.com/Kanma/BLPConverter.git +cd BLPConverter +cmake CMakeLists.txt -DWITH_LIBRARY=YES +sudo make install +sudo ldconfig +``` + #### Other platforms Compile from source and ensure the library ends up on the load path. @@ -190,6 +201,17 @@ rename `StormLib.dll` to `libstorm.dll` and ensure it ends up on the load PATH. By default, node-gyp compiles ffi for x64 so make sure `libstorm.dll` matches this architecture. +#### Ubuntu, Debian + +```shell +sudo apt-get install cmake git gcc zlib1g-dev +git clone git://github.com/ladislav-zezula/StormLib.git +cd StormLib +cmake CMakeLists.txt -DBUILD_SHARED_LIBS=ON +sudo make install +sudo ldconfig +``` + #### Other platforms Compile from source and ensure the library ends up on the load path. diff --git a/package-lock.json b/package-lock.json index 62b9547..c8e491f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2596,15 +2596,14 @@ "dev": true }, "ffi": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/ffi/-/ffi-2.2.0.tgz", - "integrity": "sha1-vxiwRmain3EiftVoldVDCvRwQvo=", + "version": "github:node-ffi/node-ffi#169773db0d56c4c99225b307b3dc86a46f3af34d", + "from": "github:node-ffi/node-ffi", "requires": { - "bindings": "1.2.1", - "debug": "2.6.9", - "nan": "2.8.0", - "ref": "1.3.5", - "ref-struct": "1.1.0" + "bindings": "~1.2.0", + "debug": "2", + "nan": "2", + "ref": "1", + "ref-struct": "1" } }, "figures": { @@ -4355,6 +4354,7 @@ }, "gulp": { "version": "github:gulpjs/gulp#71c094a51c7972d26f557899ddecab0210ef3776", + "from": "gulp@github:gulpjs/gulp#71c094a51c7972d26f557899ddecab0210ef3776", "dev": true, "requires": { "glob-watcher": "4.0.0", diff --git a/package.json b/package.json index 7487c97..2124814 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "wdt" ], "dependencies": { - "ffi": "^2.0.0", + "ffi": "node-ffi/node-ffi.git", "globby": "^8.0.1", "ref": "^1.3.0", "ref-array": "^1.1.0", diff --git a/src/lib/mpq/chain.js b/src/lib/mpq/chain.js index bfef447..6de852f 100644 --- a/src/lib/mpq/chain.js +++ b/src/lib/mpq/chain.js @@ -27,7 +27,7 @@ class MPQChain { path.join(dataDir, mpq) )); - const archives = glob.sync(patterns); + const archives = glob.sync(patterns, { nocase: true }); const mpq = MPQ.open(archives.shift(), MPQ.OPEN.READ_ONLY); archives.forEach(archive => {