Skip to content

Commit

Permalink
Make release.sh work cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
krksgbr committed Mar 15, 2020
1 parent f5d56a6 commit 57b80cb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
set -euo pipefail
IFS=$'\n\t'

file=`pwd`/`find out -name *.zip`
OS=`uname -s`

case $OS in
Linux)
ext=deb
;;
Darwin)
ext=zip
;;
*)
ext=exe
;;
esac

file=`pwd`/`find out -name *.$ext`

basename=`basename $file`
if [[ $basename == *"darwin"* ]]; then
Expand Down

0 comments on commit 57b80cb

Please sign in to comment.