x64dbg icon indicating copy to clipboard operation
x64dbg copied to clipboard

Missing or incompatible fs methods for resources

Open sheepa opened this issue 4 years ago • 4 comments

I've been using nexe successfully but when trying to use the npm package gamedig which at runtime reads node_modules/gamedig/games.txt it get an ENOENT error at runtime. It doesn't seem like the games.txt file is included.

I've tried including it in resources like such;

compile({ build: true, cwd: './src', input: 'main.js', output: '../app', target: 'linux-x64', resources: [ './node_modules/gamedig/games.txt' ] }

This gives ENOENT: no such file or directory, lstat './node_modules/gamedig/games.txt' at compile time but its definitely there, node_modules is in the src directory. Is there something I'm missing?

sheepa avatar Oct 23 '20 05:10 sheepa

You can already use "crackme.exe.#1000" in the go to dialog and it is remembered.

torusrxxx avatar Nov 14 '16 14:11 torusrxxx

I am facing the same issue.

For the given path: fs.readDir works i.e. runs inside the executable and produces the output listing the dir. However, fs.lstat fails

mannharleen avatar Dec 05 '20 11:12 mannharleen

lstat is missing in the shim currently

calebboyd avatar Jan 03 '21 21:01 calebboyd

I think the shim for fs.readdir is also missing right? I am using fastify-autoload to load in routes in a folder automatically, but after bundling, I think it is failing in this line with this error

[Error: ENOENT: no such file or directory, scandir '/home/ubuntu/final/routes'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/home/ubuntu/final/routes'
}

inian avatar Mar 15 '21 04:03 inian

I think the shim for fs.readdir is also missing right? I am using fastify-autoload to load in routes in a folder automatically, but after bundling, I think it is failing in this line with this error

[Error: ENOENT: no such file or directory, scandir '/home/ubuntu/final/routes'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/home/ubuntu/final/routes'
}

hi, did you solve this? thank you

conquera99 avatar Mar 28 '22 08:03 conquera99