x64dbg
x64dbg copied to clipboard
Missing or incompatible fs methods for resources
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?
You can already use "crackme.exe.#1000" in the go to dialog and it is remembered.
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
lstat is missing in the shim currently
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'
}
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