We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b68b43d commit 2c8a8e1Copy full SHA for 2c8a8e1
src/util/MongoBinaryDownload.js
@@ -111,10 +111,14 @@ export default class MongoBinaryDownload {
111
this.debug(`extract(): ${extractDir}`);
112
await fs.ensureDir(extractDir);
113
114
- const filter =
115
- this.platform === 'win32'
116
- ? file => /bin\/mongod.exe$/.test(file.path)
117
- : file => /bin\/mongod$/.test(file.path);
+ let filter;
+ if (this.platform === 'win32') {
+ filter = file => {
+ return /bin\/mongod.exe$/.test(file.path) || /.dll$/.test(file.path);
118
+ };
119
+ } else {
120
+ filter = file => /bin\/mongod$/.test(file.path);
121
+ }
122
123
await decompress(mongoDBArchive, extractDir, {
124
// extract only `bin/mongod` file
0 commit comments