diff --git a/rust/scripts/package-release.sh b/rust/scripts/package-release.sh index bf1d085f..17d86e46 100755 --- a/rust/scripts/package-release.sh +++ b/rust/scripts/package-release.sh @@ -24,13 +24,14 @@ main() { # copy assets into temporary directory # - find -L . -type f -name filcrypto.h -exec cp -- "{}" $__tmp_dir/ \; - find -L . -type f -name libfilcrypto.a -exec cp -- "{}" $__tmp_dir/ \; - find -L . -type f -name filcrypto.pc -exec cp -- "{}" $__tmp_dir/ \; + mkdir $__tmp_dir/filcrypto + find -L . -type f -name filcrypto.h -exec cp -- "{}" $__tmp_dir/filcrypto \; + find -L . -type f -name libfilcrypto.a -exec cp -- "{}" $__tmp_dir/filcrypto \; + find -L . -type f -name filcrypto.pc -exec cp -- "{}" $__tmp_dir/filcrypto \; # create gzipped tarball from contents of temporary directory # - tar -czf $__tarball_output_path $__tmp_dir/* + tar -czf $__tarball_output_path -C $__tmp_dir filcrypto (>&2 echo "[package-release/main] release file created: $__tarball_output_path") }