mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 06:51:26 +08:00
24 lines
332 B
Bash
Executable File
24 lines
332 B
Bash
Executable File
#!/usr/bin/env bash
|
|
if [ "$#" != "1" ]; then
|
|
echo "Tag required"
|
|
exit 1
|
|
fi
|
|
TAG=${1}
|
|
cat << EOF > cmd/version.go
|
|
package cmd
|
|
|
|
// Version - Wails version
|
|
const Version = "${TAG}"
|
|
EOF
|
|
|
|
# Build runtime
|
|
cd runtime/js
|
|
npm run build
|
|
|
|
cd ../..
|
|
mewn
|
|
|
|
git add cmd/version.go
|
|
git commit cmd/version.go -m "Bump to ${TAG}"
|
|
git tag ${TAG}
|