diff --git a/.gitignore b/.gitignore index f2dd955..e4234ac 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ # Output of the go coverage tool, specifically when used with LiteIDE *.out + +# Release file +*.zip diff --git a/scripts/createRelease.sh b/scripts/createRelease.sh new file mode 100644 index 0000000..f66d54b --- /dev/null +++ b/scripts/createRelease.sh @@ -0,0 +1,9 @@ +#!/bin/sh +go build + +if [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "win32" ]]; +then + "C:\Program Files\7-Zip\7z.exe" a -tzip release-windows.zip static/\* squirelo-voice-recognition.exe +else + zip -r release-linux.zip static squirelo-voice-recognition +fi