File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ set -o pipefail
7
7
REPO_ROOT=$( dirname " ${BASH_SOURCE[0]} " ) /..
8
8
source " ${REPO_ROOT} /hack/util.sh"
9
9
10
+ VERSION=$4
11
+
10
12
LDFLAGS=" $( util::version_ldflags " $VERSION " ) ${LDFLAGS:- } "
11
13
12
14
function release_binary() {
@@ -27,12 +29,12 @@ function release_binary_for_platform() {
27
29
local target_pkg=" ${KOSMOS_GO_PACKAGE} /$( util::get_target_source " $target " ) "
28
30
set -x
29
31
CGO_ENABLED=0 GOOS=${os} GOARCH=${arch} go build \
30
- -ldflags " ${LDFLAGS:- } " \
31
- -o " _output/release/$target -${platform} " \
32
- " ${target_pkg} "
32
+ -ldflags " ${LDFLAGS:- } " \
33
+ -o " _output/release/kosmosctl /$target -${platform} " \
34
+ " ${target_pkg} "
33
35
# copy node-agent files
34
- mkdir -p " _output/release/$target -${platform} /agent "
35
- cp " ${REPO_ROOT} /hack/node-agent" /* " _output/release/$target -${platform} /agent "
36
+ mkdir -p " _output/release/agent/ $target -${platform} "
37
+ cp " ${REPO_ROOT} /hack/node-agent" /* " _output/release/agent/ $target -${platform} "
36
38
set +x
37
39
}
38
40
You can’t perform that action at this time.
0 commit comments