Files

23 lines
327 B
Bash
Raw Permalink Normal View History

2019-03-10 17:02:12 +11:00
#!/usr/bin/env bash
2019-05-02 20:15:50 +10:00
if [ "$#" != "1" ]; then
echo "Tag required"
exit 1
fi
TAG=${1}
2019-03-10 17:02:12 +11:00
cat << EOF > cmd/version.go
package cmd
// Version - Wails version
const Version = "${TAG}"
2019-05-02 20:15:50 +10:00
EOF
2019-10-08 06:12:08 +11:00
# Build runtime
cd runtime/js
npm run build
cd ../..
2019-05-02 20:15:50 +10:00
git add cmd/version.go
git commit cmd/version.go -m "Bump to ${TAG}"
git tag ${TAG}