From 6aba86a0cc2d9c27d700f4b7bcc6e9fa3e7b5c61 Mon Sep 17 00:00:00 2001 From: pefish Date: Thu, 14 Mar 2024 15:13:20 +0800 Subject: [PATCH] v1.2.1 --- pkg/templates/ts_lib.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/templates/ts_lib.go b/pkg/templates/ts_lib.go index 48a6cd9..688f1b3 100644 --- a/pkg/templates/ts_lib.go +++ b/pkg/templates/ts_lib.go @@ -29,13 +29,15 @@ set -euxo pipefail git clone %s --single-branch -v -b main --depth 1 %s cd %s rm -rf .git -cat package.json | sed "s/template_name/%s/g" > temp.json && rm -rf package.json && mv temp.json package.json -npm install +PACKAGE_NAME="%s" APP_NAME="%s" USERNAME="%s" ./init.sh +rm -rf ./init.sh `, tlt.Url(), params.AppName, params.AppName, + params.PackageName, params.AppName, + params.Username, ) cmd := exec.Command("bash", "-c", script) cmd.Stdout = os.Stdout