From a5db3e23f78c6c44fa91706d5a02f602d9cec555 Mon Sep 17 00:00:00 2001 From: yinheli Date: Sun, 27 Jun 2021 00:32:09 +0800 Subject: [PATCH] mage build copy ctl.sh --- tools/xservice/gogen/assets/project/magefile.go.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xservice/gogen/assets/project/magefile.go.tpl b/tools/xservice/gogen/assets/project/magefile.go.tpl index 066e098..5b298e8 100644 --- a/tools/xservice/gogen/assets/project/magefile.go.tpl +++ b/tools/xservice/gogen/assets/project/magefile.go.tpl @@ -34,6 +34,7 @@ func Build() error { _ = os.Mkdir(fmt.Sprintf("%s/logs", dir), 0750) _ = sh.Copy(fmt.Sprintf("%s/README.md", dir), "README.md") + _ = sh.Copy(fmt.Sprintf("%s/ctl.sh", dir), "ctl.sh") _ = sh.Run("tar", "-czf", fmt.Sprintf("%s.tar.gz", dir), "-C", "dist", filepath.Base(dir)) return nil