Fix bug with ssh2 executable being in the wrong place

feature/search
Kelvin Schoofs 6 years ago
parent 647717d44a
commit 8d78ba154a

1
.gitignore vendored

@ -1,4 +1,5 @@
dist
util
node_modules
*.vsix
stats.json

@ -2,7 +2,7 @@
**
!dist/*.js
!dist/util
!util
!resources/config
!resources/Logo.png
!media

@ -28,7 +28,7 @@ class CopyPuttyExecutable {
*/
apply(compiler) {
const path = resolve('./node_modules/ssh2/util/pagent.exe');
const target = join(compiler.options.output.path, 'util/pagent.exe');
const target = join(compiler.options.output.path, '../util/pagent.exe');
compiler.hooks.beforeRun.tapPromise('CopyPuttyExecutable-BeforeRun', () => new Promise((resolve, reject) => {
fs.exists(path, exists => exists ? resolve() : reject(`Couldn't find executable at: ${path}`));
}));

Loading…
Cancel
Save