I want to set Script Path for my script in android project without using a strict path(/User/Documents/MyApp/tools/script.sh
) as well as "Working directory".
I know that I can use "External tools" but this solution doesn't work because all project developers will have to import my jar file with "external tools" settings
Can I somehow write this path using $ProjectFileDir$ variables?
As of now, there is no direct way to use these variables in the path values of configurations.
Alternatively, you can create a
gradle
task
inapp/gradle
file to run your shell scripts:Now run the file:
Output: