Skip to content

Commit c8a5326

Browse files
authored
Remove binaries from tarball source (#827)
* Remove binaries from tarball source. * Update based on PR comment. * Add a few more binary file extensions.
1 parent b3aa7ea commit c8a5326

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build-source-tarball.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ git submodule foreach --quiet --recursive '
8787
git --work-tree="$TARBALL_SUBMODULE_PATH" checkout -- .
8888
fi'
8989

90+
echo 'Removing binaries from tarball src...'
91+
find $TARBALL_ROOT/src \( -type f \( \
92+
-iname *.dll -o \
93+
-iname *.exe -o \
94+
-iname *.pdb -o \
95+
-iname *.mdb -o \
96+
-iname *.zip -o \
97+
-iname *.nupkg \) \) -exec rm {} \;
98+
9099
echo 'Copying scripts and tools to tarball...'
91100

92101
cp $SCRIPT_ROOT/*.proj $TARBALL_ROOT/

0 commit comments

Comments
 (0)