First of all, as usual, thanks for your great work.
I use frida-compile in a tool I wrote. Unfortunately, last versions of frida-compile raise the exception "entrypoint must be inside the project root".
I looked in the code and I found the cause. My tool does not compile the JS files from their folder, but from an external folder using the absolute path of frida compile, of the input JS file and of the output JS file (example: ""/ABS_PATH/frida-compile" -o "/ABS_PATH/output.js" "/ABS_PATH/input.js""). In the recent versions of frida-compile there is the a check that throws an error if "endpoint" does not starts with "projectRoot", but "projectRoot" is derived from the current working directory and causes my issue.
Hi,
First of all, as usual, thanks for your great work.
I use frida-compile in a tool I wrote. Unfortunately, last versions of frida-compile raise the exception "entrypoint must be inside the project root".
I looked in the code and I found the cause. My tool does not compile the JS files from their folder, but from an external folder using the absolute path of frida compile, of the input JS file and of the output JS file (example: ""/ABS_PATH/frida-compile" -o "/ABS_PATH/output.js" "/ABS_PATH/input.js""). In the recent versions of frida-compile there is the a check that throws an error if "endpoint" does not starts with "projectRoot", but "projectRoot" is derived from the current working directory and causes my issue.
The code I mentioned is the following one:
cli.ts (lines 21-22)
compiler.ts (lines 214-228)
Compilation outside the project root can cause troubles with recent frida-compile versions?
Thank you.
Federico