Skip to content

Commit 961e2a1

Browse files
authored
Update build script
1 parent 04f17f7 commit 961e2a1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/build.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44

55
commands = [
66
"pip3 install cargo-lambda",
7-
"cargo lambda build --release --output-format zip"
7+
"cargo lambda build --release --output-format zip",
8+
"mkdir -p infrastructure/data/lambdas"
89
]
910
os.system("; ".join(commands))
1011

1112
functions = [name for name in os.listdir("target/lambda/")]
12-
13-
commands.append("mkdir -p infrastructure/data/lambdas")
14-
1513
for function in functions:
1614
commands.append(f"cp target/lambda/{function}/bootstrap.zip infrastructure/data/lambdas/{function}.zip")
1715
os.system("; ".join(commands))

0 commit comments

Comments
 (0)