From cea789a16d0167df7394449e42b5f6cee5ef6bb3 Mon Sep 17 00:00:00 2001 From: howieyuen Date: Wed, 10 Aug 2022 17:58:08 +0800 Subject: [PATCH] bugfix: copy kusionCLI to tar ball --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 52eca25f..6fd78537 100644 --- a/Makefile +++ b/Makefile @@ -202,7 +202,6 @@ build-local-linux: ## Build kusion tool chain for linux -rm -f ./pkg/version/z_update_version.go -rm -rf ./_build/bundles/kusion-linux mkdir -p ./_build/bundles/kusion-linux/bin - mkdir -p ./_build/bundles/kusion-linux/kclvm/bin # Update version go generate ./pkg/version @@ -253,6 +252,10 @@ build-local-ubuntu-all: build-local-linux ## Build kusion & kcl tool chain for # Copy README.md cp ./README.md ./_build/bundles/kusion-ubuntu + + # Copy kusion + cp -r ./_build/bundles/kusion-linux/bin ./_build/bundles/kusion-ubuntu + # Build tgz cd ./_build/bundles/kusion-ubuntu && tar -zcvf ../kusion-ubuntu.tgz . cd ./_build/bundles && go run ../../scripts/md5file/main.go kusion-ubuntu.tgz > kusion-ubuntu.tgz.md5.txt @@ -293,6 +296,10 @@ build-local-centos-all: build-local-linux ## Build kusion & kcl tool chain for # Copy README.md cp ./README.md ./_build/bundles/kusion-centos + + # Copy kusion + cp -r ./_build/bundles/kusion-linux/bin ./_build/bundles/kusion-centos + # Build tgz cd ./_build/bundles/kusion-centos && tar -zcvf ../kusion-centos.tgz . cd ./_build/bundles && go run ../../scripts/md5file/main.go kusion-centos.tgz > kusion-centos.tgz.md5.txt