File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -71,30 +71,21 @@ function ume::build {
71
71
! [ -d " ./.result" ] && mkdir -p ./.result
72
72
pushd ./.result > /dev/null
73
73
74
- extra=" "
75
- if [ " $( uname -s) " == " Linux" ]; then
76
- if [ " $target " == " x86_64-unknown-linux-musl" ]; then
77
- extra=" -musl"
78
- else
79
- extra=" -gnu"
80
- fi
81
- fi
82
-
83
74
echo " ===> Compiling release \` ume\` binary [target=$target ] [flags=$flags ] [\$ CARGO=$cargo ] [os=$os ] [arch=$arch ]"
84
75
echo " $ $cargo build --release --locked --target $target $flags "
85
76
" $cargo " build --release --locked --target=" $target " $flags || exit 1
86
77
87
- echo " Moving ./target/$target /release/ume ~> .result/ume-$os -$arch$extra "
88
- mv ../target/" $target " /release/ume ./" ume-$os -$arch$extra " || exit 1
78
+ echo " Moving ./target/$target /release/ume ~> .result/ume-$os -$arch "
79
+ mv ../target/" $target " /release/ume ./" ume-$os -$arch " || exit 1
89
80
90
- echo " ===> Generating sha256sum file [binary=ume-$os -$arch$extra ]"
81
+ echo " ===> Generating sha256sum file [binary=ume-$os -$arch ]"
91
82
if [ " $( uname -s) " == " Darwin" ]; then
92
- shasum -a 256 " ume-$os -$arch$extra " > ./" ume-$os -$arch$extra .sha256"
83
+ shasum -a 256 " ume-$os -$arch " > ./" ume-$os -$arch .sha256"
93
84
else
94
- sha256sum " ume-$os -$arch$extra " > ./" ume-$os -$arch$extra .sha256"
85
+ sha256sum " ume-$os -$arch " > ./" ume-$os -$arch .sha256"
95
86
fi
96
87
97
- echo " ===> Created SHA256 file for binary [binary=ume-$os -$arch$extra ]"
88
+ echo " ===> Created SHA256 file for binary [binary=ume-$os -$arch ]"
98
89
echo " ===> Completed."
99
90
100
91
popd > /dev/null
You can’t perform that action at this time.
0 commit comments