Skip to content

Commit

Permalink
Add conpty dlls and node headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Aug 1, 2024
1 parent f2be1af commit 95f67e7
Show file tree
Hide file tree
Showing 2,372 changed files with 1,001,873 additions and 2 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.test.js
*.test.ts
third_party/
4 changes: 2 additions & 2 deletions src/win/conpty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define _WIN32_WINNT 0x600

#define NODE_ADDON_API_DISABLE_DEPRECATED
#include <napi.h>
#include <node_api.h>
#include <assert.h>
#include <Shlwapi.h> // PathCombine, PathIsRelative
#include <sstream>
Expand Down Expand Up @@ -178,7 +178,7 @@ HANDLE LoadConptyDll(const Napi::CallbackInfo& info,
std::wstring currentDirStr(currentDir);

// TODO: Support arm64
std::wstring conptyDllPath = currentDirStr + L"\\vendor\\conpty.dll";
std::wstring conptyDllPath = currentDirStr + L"\\third_party\\conpty\\1.19.240130002\\win10-x64\\conpty.dll";
if (!path_util::file_exists(conptyDllPath)) {
throw errorWithCode(info, "Cannot find conpty.dll");
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 95f67e7

Please sign in to comment.