Skip to content

Commit

Permalink
docs: mention automatic file extension in output/build/script (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk authored Nov 27, 2024
1 parent 586982d commit eb9effd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/reference/recipe_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,14 @@ outputs:
- package:
name: subpackage-name
build:
script: install-subpackage.sh
script: install-subpackage
```

If `script` lacks a file extension,
the appropriate extension for the platform will be appended,
e.g. the above will run `install-subpackage.sh` in `bash` on most platforms
and `install-subpackage.bat` in `cmd.exe` on Windows.

Each output is built independently. You should take care of not packaging the
same files twice.

Expand Down

0 comments on commit eb9effd

Please sign in to comment.