| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # Generate the OpenAPI client |
| 6 | echo "Generating the OpenAPI client..." |
| 7 | openapi-generator generate -i ./api/openapi.json |
| 8 | |
| 9 | # Build the client |
| 10 | echo "Building the OpenAPI client..." |
| 11 | cd openapi |
| 12 | dart run build_runner build |
| 13 | |
| 14 | # Done |
| 15 | echo "Done!" |