Skip to content

Commit a735729

Browse files
committed
Update release script
1 parent fbf42a6 commit a735729

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

homebrew-brew

releaseVersion.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ echo -e "\033[1;34mCreating commit for version\033[0m"
4141

4242
VERSION="$1"
4343

44-
echo "\"$VERSION\"" > applesimutils/applesimutils/version.h
44+
echo "\"${VERSION}\"" > applesimutils/applesimutils/version.h
4545

4646
echo -e "\033[1;34mCreating a compressed tarball of the source\033[0m"
4747

@@ -72,19 +72,19 @@ git fetch
7272
git pull --rebase
7373
sed -i '' -e 's/^\ \ url .*/\ \ url '"'https:\/\/github.com\/wix\/AppleSimulatorUtils\/releases\/download\/${VERSION}\/${SRC_TGZ_FILE}'"'/g' applesimutils.rb
7474
sed -i '' -e 's/^\ \ \ \ root\_url .*/\ \ \ \ root\_url '"'https:\/\/github.com\/wix\/AppleSimulatorUtils\/releases\/download\/${VERSION}'"'/g' applesimutils.rb
75-
sed -i '' -e 's/^\ \ sha256 .*/\ \ sha256 '"'"$(shasum -b -a 256 ../build/${SRC_TGZ_FILE} | awk '{ print $1 }')"'"'/g' applesimutils.rb
76-
sed -i '' -e 's/^\ \ \ \ sha256 .*/\ \ \ \ sha256 '"'"$(shasum -b -a 256 ../bottle/${BOTTLE_TGZ_FILE} | awk '{ print $1 }')"'"'\ \=\>\ \:mojave/g' applesimutils.rb
75+
sed -i '' -e 's/^\ \ sha256 .*/\ \ sha256 '"'"$(shasum -b -a 256 ../build/${SRC_TGZ_FILE} | awk '{ print ${VERSION} }')"'"'/g' applesimutils.rb
76+
sed -i '' -e 's/^\ \ \ \ sha256 .*/\ \ \ \ sha256 '"'"$(shasum -b -a 256 ../bottle/${BOTTLE_TGZ_FILE} | awk '{ print ${VERSION} }')"'"'\ \=\>\ \:mojave/g' applesimutils.rb
7777
git add -A
78-
git commit -m "$1"
78+
git commit -m "Apple Simulator Utils ${VERSION}"
7979
git push
8080

8181
cd ..
8282

8383
echo -e "\033[1;34mPushing changes to AppleSimUtils\033[0m"
8484

8585
git add -A
86-
git commit -m "$1"
87-
git tag "$1"
86+
git commit -m "${VERSION}"
87+
git tag "${VERSION}"
8888

8989
git push
9090
git push --tags

0 commit comments

Comments
 (0)