Executable Resources
An executable resource is a file that can be executed. It can be a file with an .exe
, .sh
, .bat
, etc. extension. You can find a list of executable file extensions here (opens in a new tab).
Declaration
In case you have resources that are executables, you can declare them in the .aml
file so that they are copied into the package with their associated execution mode. Simply add the executable
field as True
. Let's take the following example, we have a folder resources
containing three files app1.py
, app2.sh
, and app3
, and the declaration file .aml
. We want these files to be copied into the package with their associated execution mode.
- .aiop
- .aml
- app1.py
- app2.sh
- app3
- source: app1.py
destination: app1.py
executable: True
compatibility:
- ...
- source: app2.sh
destination: app2.sh
executable: True
compatibility:
- ...
- source: app3
destination: app1
executable: True
compatibility:
- ...
By default, this field is set to False
. If you do not declare it, the file will be copied into the package but will not be executable.