File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,18 +83,19 @@ clean:
83
83
rm -rf build
84
84
cargo clean
85
85
86
+ TEMPLATE_TYPE := --git
86
87
TEMPLATE_REPO := https://github.com/xxuejie/ckb-script-templates
87
88
CRATE :=
88
89
TEMPLATE := contract
89
90
DESTINATION := contracts
90
91
generate :
91
92
@set -eu; \
92
93
if [ " x$( CRATE) " = " x" ]; then \
93
- cargo generate --git $(TEMPLATE_REPO ) $(TEMPLATE ) \
94
+ cargo generate $( TEMPLATE_TYPE ) $(TEMPLATE_REPO ) $(TEMPLATE ) \
94
95
--destination $(DESTINATION ) ; \
95
96
echo " Please update workspace-level Cargo.toml so members include the newly created crate!" ; \
96
97
else \
97
- cargo generate --git $(TEMPLATE_REPO ) $(TEMPLATE ) \
98
+ cargo generate $( TEMPLATE_TYPE ) $(TEMPLATE_REPO ) $(TEMPLATE ) \
98
99
--destination $(DESTINATION ) \
99
100
--name $(CRATE ) ; \
100
101
sed -i ' /@@INSERTION_POINT@@/a \ \ "$(DESTINATION)/$(CRATE)",' Cargo.toml; \
You can’t perform that action at this time.
0 commit comments