Skip to content

Commit

Permalink
move to use txz files
Browse files Browse the repository at this point in the history
  • Loading branch information
chensjlv committed Nov 18, 2024
1 parent e21daa8 commit e67ef7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/fetch-envoy
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extract_envoy_from_docker() {
--include=/usr/local/bin/envoy \
"envoyproxy/envoy:$_envoy_tag" \
"$_tmp_dir"
cp -f "$_tmp_dir/usr/local/bin/envoy" "$_bin_dir/envoy-$_os-$_arch"
tar -cJf "$_bin_dir/envoy-$_os-$_arch.txz" "$_tmp_dir/usr/local/bin/envoy"
rm -rf "$_tmp_dir"
}

Expand All @@ -58,7 +58,8 @@ extract_envoy_from_homebrew() {
--strip-components=3 \
"envoy/${_version}/bin/envoy"
)
mv -f "$_tmp_dir/envoy" "$_bin_dir/envoy-$_os-$_arch"
tar -cJf "$_bin_dir/envoy-$_os-$_arch.txz" "$_tmp_dir/envoy"
rm -rf "$_tmp_dir"
}

extract_envoy() {
Expand All @@ -69,7 +70,7 @@ extract_envoy() {
fi
(
cd "$_bin_dir"
shasum -a 256 "envoy-$_os-$_arch" >"envoy-$_os-$_arch".sha256
shasum -a 256 "envoy-$_os-$_arch.txz" >"envoy-$_os-$_arch".sha256
)
}

Expand Down

0 comments on commit e67ef7b

Please sign in to comment.