diff --git a/nodejs/package-current.sh b/nodejs/package-current.sh index 6714144..e7d852e 100755 --- a/nodejs/package-current.sh +++ b/nodejs/package-current.sh @@ -44,7 +44,10 @@ tar -xf "${tmp_dir}/${app_name}-${pkg_arch}.tar.xz" -C $tmp_dir echo "解包完成, 复制到待打包目录..." -mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/* "./unpack/usr/" +mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/bin "./unpack/usr/" +mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/include "./unpack/usr/" +mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/lib "./unpack/usr/" +mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/share "./unpack/usr/" rm -rf $tmp_dir diff --git a/nodejs/package-lts.sh b/nodejs/package-lts.sh index 63ce86a..c7f4c7a 100755 --- a/nodejs/package-lts.sh +++ b/nodejs/package-lts.sh @@ -44,7 +44,10 @@ tar -xf "${tmp_dir}/${app_name}-${pkg_arch}.tar.xz" -C $tmp_dir echo "解包完成, 复制到待打包目录..." -mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/* "./unpack/usr/" +mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/bin "./unpack/usr/" +mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/include "./unpack/usr/" +mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/lib "./unpack/usr/" +mv ${tmp_dir}/node-${release}-linux-${pkg_arch}/share "./unpack/usr/" rm -rf $tmp_dir