Skip to content

Commit

Permalink
Only repack necessary files on MacOS releases
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Dec 5, 2024
1 parent 5c946f9 commit 2fbccbb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,15 @@ jobs:
if [[ "${{ matrix.os }}" == "macos" ]]; then
mkdir ./ttmp
unzip "${base}.zip" -d ./ttmp
/bin/cp -rf build/$cmake_config/bin/* ./ttmp/bin/
/bin/cp -rf build/$cmake_config/lib/* ./ttmp/lib/
# Copy only existing files from build directory
find ./ttmp/{bin,lib} -type f | while read -r file; do
src_file="build/$cmake_config/${file#./ttmp/}"
if [ -f "$src_file" ]; then
cp "$src_file" "$file"
fi
done
rm ${base}.zip
rm ${base}.tar.gz
cd ./ttmp
Expand Down

0 comments on commit 2fbccbb

Please sign in to comment.