diff --git a/flow b/flow index cbff9f8..1a2e53b 100755 --- a/flow +++ b/flow @@ -49,7 +49,8 @@ build() { # Create the source tarball excluding specified patterns info "Creating tarball: ${tarball_path}" - if tar --exclude='.git*' --exclude='./target' --exclude='./package' --exclude='./flows' --exclude='./flow' -czf "${tarball_path}" .; then + # Set COPYFILE_DISABLE=1 to prevent macOS tar from including ._ metadata files + if COPYFILE_DISABLE=1 tar --exclude='.git*' --exclude='./target' --exclude='./package' --exclude='./flows' --exclude='./flow' -czf "${tarball_path}" .; then success "Successfully created source tarball: ${tarball_path}" else error "Failed to create source tarball."