Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
building: PKG: ensure DATA files are excluded when in onedir mode
When building PKG for `onedir` build, ensure that `DATA` entries are put into dependencies list instead of including them in the PKG. This complements existing behavior for `BINARY` and `EXTENSION` entries, and prevents a `onedir` build from becoming a broken `onefile` one if user accidentally passes binaries and data files TOCs to `EXE` instead of `COLLECT` when manually editing the spec file.
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
When building PKG for ``onedir`` build, ensure that ``DATA`` entries | ||
are put into dependencies list instead of including them in the PKG. | ||
This complements existing behavior for ``BINARY`` and ``EXTENSION`` | ||
entries, and prevents a ``onedir`` build from becoming a broken | ||
``onefile`` one if user accidentally passes binaries and data files | ||
TOCs to ``EXE`` instead of `COLLECT` when manually editing the | ||
spec file. |