#/bin/sh

zip Branch-iOS-SDK.zip Branch-SDK/ Branch.framework/
zip Branch-iOS-TestBed.zip Branch-SDK/ Branch-TestBed/ Branch.framework/

aws s3 cp Branch-iOS-SDK.zip s3://branchhost/
aws s3 cp Branch-iOS-TestBed.zip s3://branchhost/

#/bin/sh

echo 'Zipping Branch-iOS-SDK'
zip -rqy Branch-iOS-SDK.zip Branch-SDK/ Branch.framework/

echo 'Zipping Branch-iOS-TestBed'
zip -rqy Branch-iOS-TestBed.zip Branch-SDK/ Branch-TestBed/ Branch.framework/

echo 'Uploading Branch-iOS-SDK'
aws s3 cp --acl public-read Branch-iOS-SDK.zip s3://branchhost/

echo 'Uploading Branch-iOS-TestBed'
aws s3 cp --acl public-read Branch-iOS-TestBed.zip s3://branchhost/

echo 'Removing zip files'
rm Branch-iOS-SDK.zip Branch-iOS-TestBed.zip

Fix ACL for uploaded files. Zip entire directory (r). Keep symlinks in zip (y). Quiet zip (q). Remove zips after upload. Status messages.
Fix ACL for uploaded files.
Zip entire directory (r).
Keep symlinks in zip (y).
Quiet zip (q).
Remove zips after upload.
Status messages.
