!8 strip wasm_engine binary
From: @meilier Reviewed-by: @duguhaotian Signed-off-by: @duguhaotian
This commit is contained in:
commit
a0a116346b
@ -1 +1 @@
|
|||||||
0.1.2-1
|
0.1.2-4
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: WasmEngine
|
Name: WasmEngine
|
||||||
Version: v0.1.2
|
Version: v0.1.2
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: WasmEngine is a webassembly function engine, which provides high concurrency and sandbox security.
|
Summary: WasmEngine is a webassembly function engine, which provides high concurrency and sandbox security.
|
||||||
|
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
@ -43,6 +43,9 @@ replace-with = "vendored-sources"
|
|||||||
|
|
||||||
[source.vendored-sources]
|
[source.vendored-sources]
|
||||||
directory = "vendor"
|
directory = "vendor"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
strip = true
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
CARGO_HOME=.cargo cargo build --release
|
CARGO_HOME=.cargo cargo build --release
|
||||||
@ -60,6 +63,11 @@ rm -rf %{buildroot}
|
|||||||
%attr(550,root,root) %{_bindir}/wasm_engine
|
%attr(550,root,root) %{_bindir}/wasm_engine
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 07 2023 xingweizheng <xingweizheng@huawei.com> - v0.1.2-4
|
||||||
|
- Type: bugfix
|
||||||
|
- CVE: NA
|
||||||
|
- SUG: restart
|
||||||
|
- DESC: strip wasm_engine binary
|
||||||
* Mon Aug 08 2022 jiangpengfei <jiangpengfei9@huawei.com> - v0.1.2-3
|
* Mon Aug 08 2022 jiangpengfei <jiangpengfei9@huawei.com> - v0.1.2-3
|
||||||
- Type: bugfix
|
- Type: bugfix
|
||||||
- CVE: NA
|
- CVE: NA
|
||||||
|
|||||||
@ -11,13 +11,13 @@
|
|||||||
# See the Mulan PSL v2 for more details.
|
# See the Mulan PSL v2 for more details.
|
||||||
# Author: Xiang Li
|
# Author: Xiang Li
|
||||||
# Create: 2020-05-18
|
# Create: 2020-05-18
|
||||||
# Description: This script used for update isula-build version and release. Enjoy and cherrs
|
# Description: This script used for update WasmEngine version and release. Enjoy and cherrs
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
|
|
||||||
# Basic info
|
# Basic info
|
||||||
top_dir=$(git rev-parse --show-toplevel)
|
top_dir=$(git rev-parse --show-toplevel)
|
||||||
version_file="${top_dir}/VERSION-openeuler"
|
version_file="${top_dir}/VERSION-openeuler"
|
||||||
spec_file="${top_dir}/isula-build.spec"
|
spec_file="${top_dir}/WasmEngine.spec"
|
||||||
commit_file=${top_dir}/git-commit
|
commit_file=${top_dir}/git-commit
|
||||||
color=$(tput setaf 2) # red
|
color=$(tput setaf 2) # red
|
||||||
color_reset=$(tput sgr0)
|
color_reset=$(tput sgr0)
|
||||||
@ -75,13 +75,13 @@ new_version=${major_old_version}.${minor_old_version}.${revision_old_version}
|
|||||||
new_release="${new_release_num}"
|
new_release="${new_release_num}"
|
||||||
new_all=${new_version}-${new_release_num}
|
new_all=${new_version}-${new_release_num}
|
||||||
new_changelog=$(cat << EOF
|
new_changelog=$(cat << EOF
|
||||||
* $(date '+%a %b %d %Y') $author <$email> - $new_all\n- Type:\n- CVE:\n- SUG:\n- DESC:\n
|
* $(date '+%a %b %d %Y') $author <$email> - v$new_all\n- Type:\n- CVE:\n- SUG:\n- DESC:\n
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
# Replace version and release for spec and VERSION files
|
# Replace version and release for spec and VERSION files
|
||||||
sed -i -e "s/^Version: .*$/Version: ${new_version}/g" "${spec_file}"
|
sed -i -e "s/^Version: .*$/Version: v${new_version}/g" "${spec_file}"
|
||||||
sed -i -e "s/^Release: .*$/Release: ${new_release}/g" "${spec_file}"
|
sed -i -e "s/^Release: .*$/Release: ${new_release}/g" "${spec_file}"
|
||||||
sed -i -e "/\%changelog/a$new_changelog" "${spec_file}"
|
sed -i -e "/\%changelog/a$new_changelog" "${spec_file}"
|
||||||
echo "${new_all}" > "${version_file}"
|
echo "${new_all}" > "${version_file}"
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
72af9798974345d587fe8f3ea2c121adc1696651
|
adc1bb28a7c07b7ea4e3eb3a6d4becf43392364f
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user