strip wasm_engine binary
This commit is contained in:
parent
e686c19848
commit
293642bcff
@ -1 +1 @@
|
||||
0.1.2-1
|
||||
0.1.2-4
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
Name: WasmEngine
|
||||
Version: v0.1.2
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: WasmEngine is a webassembly function engine, which provides high concurrency and sandbox security.
|
||||
|
||||
License: MulanPSL-2.0
|
||||
@ -43,6 +43,9 @@ replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
||||
|
||||
[profile.release]
|
||||
strip = true
|
||||
EOF
|
||||
|
||||
CARGO_HOME=.cargo cargo build --release
|
||||
@ -60,6 +63,11 @@ rm -rf %{buildroot}
|
||||
%attr(550,root,root) %{_bindir}/wasm_engine
|
||||
|
||||
%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
|
||||
- Type: bugfix
|
||||
- CVE: NA
|
||||
|
||||
@ -11,13 +11,13 @@
|
||||
# See the Mulan PSL v2 for more details.
|
||||
# Author: Xiang Li
|
||||
# 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
|
||||
top_dir=$(git rev-parse --show-toplevel)
|
||||
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
|
||||
color=$(tput setaf 2) # red
|
||||
color_reset=$(tput sgr0)
|
||||
@ -75,12 +75,12 @@ new_version=${major_old_version}.${minor_old_version}.${revision_old_version}
|
||||
new_release="${new_release_num}"
|
||||
new_all=${new_version}-${new_release_num}
|
||||
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
|
||||
)
|
||||
|
||||
# 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 "/\%changelog/a$new_changelog" "${spec_file}"
|
||||
echo "${new_all}" > "${version_file}"
|
||||
|
||||
@ -1 +1 @@
|
||||
72af9798974345d587fe8f3ea2c121adc1696651
|
||||
adc1bb28a7c07b7ea4e3eb3a6d4becf43392364f
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user