I am trying to run a Flutter app in Android Studio but before, I need to copy some files from one directory to another. So I created the following copy_webenv.cmd
Windows script:
xcopy webenv\%1 web\ /E/Y
Then I created a Shell Script build configuration in Android Studio that runs this script with a dev
parameter:
And when I run this build configuration on its own, it works flawlessly:
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\sarbogast\dev\buzzwordbingo>C:\Users\sarbogast\dev\buzzwordbingo\copy_webenv.cmd dev
C:\Users\sarbogast\dev\buzzwordbingo>xcopy webenv\dev web\ /E/Y
webenv\dev\favicon.png
webenv\dev\index.html
webenv\dev\icons\Icon-192.png
webenv\dev\icons\Icon-512.png
4 File(s) copied
But then when I try to add this build configuration to the "Before launch" steps of my Flutter build configuration:
And run this build configuration, I get the following error:
Error running 'copy webenv dev'
Executable is not specified
I don't see any executable field anywhere.