Skip to content

Commit

Permalink
Add script to create release zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
hmarr committed Mar 26, 2021
1 parent 9340c55 commit 99731d3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions script/create-release-zip
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

set -e -o pipefail

release_dir="Vitals/$(ls -t Vitals | grep 'Vitals 20' | fzf --select-1)"
echo "release directory = $release_dir"

plist="$release_dir/Vitals.app/Contents/Info.plist"
version=$(/usr/libexec/PlistBuddy -c "print CFBundleShortVersionString" "$plist")
echo "version = $version"

read -p "press any key to continue, or ctrl-c to cancel"

cd "$release_dir"
zip_name="vitals-v${version}.zip"
zip -r "$zip_name" "Vitals.app"
mv "$zip_name" "../../"
cd "../.."

echo "created $zip_name"

0 comments on commit 99731d3

Please sign in to comment.