m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-08 05:03:49 -05:00

Optimize workflows (#25)

feat: optimize workflows

---------

Co-authored-by: Stavros <steveiliop56@gmail.com>
This commit is contained in:
Sergio
2024-09-06 21:46:43 +03:00
committed by GitHub
parent d67ffbf387
commit b5ebb33627
8 changed files with 171 additions and 101 deletions

View File

@@ -1,7 +1,16 @@
#!/bin/sh
rm -rf src/static
# This is kind of like a shim that makes sure the frontend is rebuilt when running a build. For example you can run `./build.sh cargo build --release`
# Frontend
cd web/
# Build
bun run build
# Copy UI to src folder
cp -r dist/ ../src/static
cargo build $@
# Run command from argv
$@