Skip to content

Commit

Permalink
Update generate script
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Apr 5, 2024
1 parent 77cc585 commit 09eedb6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#!/bin/bash
set -e # Exit immediately if any command exits with a non-zero status.

# Remove the existing 'seam' directory
rm -rf ./seam
mkdir -p ./tmp

# Remove the existing temporary SDK generation folder
rm -rf ./tmp/nextlove-sdk-generator-output

# Generate SDK files
nextlove-sdk-generator generate python ./temp_sdk
nextlove-sdk-generator generate python ./tmp/nextlove-sdk-generator-output

# Move only the 'seam' folder
mv ./temp_sdk/seam ./seam
rm -rf ./seam
mv ./tmp/nextlove-sdk-generator-output/seam ./seam

# Clean up the temporary SDK generation folder
rm -rf ./temp_sdk
rm -rf ./tmp/nextlove-sdk-generator-output

0 comments on commit 09eedb6

Please sign in to comment.