Skip to content

Commit 9cef881

Browse files
committed
add checksumming to the release prorocedure
1 parent 9ec8fcb commit 9cef881

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

scripts/checksum.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
checksum_file=checksum
3+
sdk_archive=Branch-iOS-SDK.zip
4+
testbed_archive=Branch-iOS-TestBed.zip
5+
6+
echo '#checksum for Branch-iOS-SDK found at https://s3-us-west-1.amazonaws.com/branchhost/Branch-iOS-SDK.zip' > $checksum_file
7+
shasum $sdk_archive >> $checksum_file
8+
echo '#checksum for Branch-iOS-TestBed found at https://s3-us-west-1.amazonaws.com/branchhost/Branch-iOS-TestBed.zip' >> $checksum_file
9+
shasum $testbed_archive >> $checksum_file
10+
11+
git checkout master
12+
git add $checksum_file
13+
git commit -m 'compute checksum'
14+
git push
15+
16+
echo 'Pushed Checksum to master'

scripts/upload_zips.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ aws s3 cp --acl public-read Branch-iOS-SDK.zip s3://branchhost/
1212
echo 'Uploading Branch-iOS-TestBed'
1313
aws s3 cp --acl public-read Branch-iOS-TestBed.zip s3://branchhost/
1414

15+
echo 'Computing the checksums'
16+
sh scripts/checksum.sh
17+
1518
echo 'Removing zip files'
1619
rm Branch-iOS-SDK.zip Branch-iOS-TestBed.zip

0 commit comments

Comments
 (0)