chore: use git describe --tags for version
This commit is contained in:
parent
6f178a6de4
commit
ce27e9d610
|
@ -6,7 +6,9 @@ set -u
|
|||
# building for linux on linux seems to yield smaller sizes
|
||||
|
||||
# TODO use the git log describe thing
|
||||
my_version="0.6.0"
|
||||
my_version="$(
|
||||
git describe --tags
|
||||
)"
|
||||
export GOOS="linux"
|
||||
|
||||
fn_package() { (
|
||||
|
@ -18,7 +20,7 @@ fn_package() { (
|
|||
my_arch="${GOARCH}"
|
||||
fi
|
||||
|
||||
my_bin="pathman-v${my_version}-${GOOS}-${my_arch}"
|
||||
my_bin="pathman-${my_version}-${GOOS}-${my_arch}"
|
||||
tinygo build -no-debug -o "${my_bin}"
|
||||
strip "${my_bin}" || true
|
||||
|
||||
|
|
|
@ -5,8 +5,9 @@ set -u
|
|||
# NOTE
|
||||
# building for macOS on macOS seems to yield smaller sizes
|
||||
|
||||
# TODO use the git log describe thing
|
||||
my_version="0.6.0"
|
||||
my_version="$(
|
||||
git describe --tags
|
||||
)"
|
||||
export GOOS="darwin"
|
||||
|
||||
fn_package() { (
|
||||
|
@ -18,7 +19,7 @@ fn_package() { (
|
|||
my_arch="${GOARCH}"
|
||||
fi
|
||||
|
||||
my_bin="pathman-v${my_version}-${GOOS}-${my_arch}"
|
||||
my_bin="pathman-${my_version}-${GOOS}-${my_arch}"
|
||||
tinygo build -no-debug -o "${my_bin}"
|
||||
strip "${my_bin}" || true
|
||||
|
||||
|
|
|
@ -6,7 +6,9 @@ set -u
|
|||
# building for macOS on macOS seems to yield smaller sizes
|
||||
|
||||
# TODO use the git log describe thing
|
||||
my_version="0.6.0"
|
||||
my_version="$(
|
||||
git describe --tags
|
||||
)"
|
||||
export GOOS="windows"
|
||||
|
||||
fn_package() { (
|
||||
|
|
Loading…
Reference in New Issue