Skip to content

Commit

Permalink
Update build/release process (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed authored Nov 29, 2023
1 parent cf78903 commit 032a403
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ rm Segment.zip
rm Sovran.zip
rm Segment.sha256
rm Sovran.sha256
rm JSONSafeEncoder.zip
rm JSONSafeEncoder.sha256

echo "Building XCFrameworks ..."

swift create-xcframework --clean --platform ios --platform macos --platform maccatalyst --platform tvos --platform watchos --stack-evolution --zip Segment Sovran
swift create-xcframework --clean --platform ios --platform macos --platform maccatalyst --platform tvos --platform watchos --stack-evolution --zip Segment Sovran JSONSafeEncoder

echo "Done."
4 changes: 3 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ rm $tempFile
gh release upload $newVersion ${PRODUCT_NAME}.zip
gh release upload $newVersion ${PRODUCT_NAME}.sha256

# SPECIAL CASE: We need to upload Sovran to save them time.
# SPECIAL CASE: We need to upload Sovran and JSONSafeEncoder to save them time.
gh release upload $newVersion Sovran.zip
gh release upload $newVersion Sovran.sha256
gh release upload $newVersion JSONSafeEncoder.zip
gh release upload $newVersion JSONSafeEncoder.sha256

0 comments on commit 032a403

Please sign in to comment.