Add ability to embed a version number

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2022-06-01 15:28:49 +01:00
parent 2acd662dd6
commit cc77a0fed2
No known key found for this signature in database
GPG key ID: AA5726202C8879B7
2 changed files with 10 additions and 0 deletions

7
setVersionNumber.sh Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
cat << EOF > walrss/internal/core/version.go
package core
const Version = "$1"
EOF

View file

@ -0,0 +1,3 @@
package core
const Version = ""