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
|
# building for linux on linux seems to yield smaller sizes
|
||||||
|
|
||||||
# TODO use the git log describe thing
|
# TODO use the git log describe thing
|
||||||
my_version="0.6.0"
|
my_version="$(
|
||||||
|
git describe --tags
|
||||||
|
)"
|
||||||
export GOOS="linux"
|
export GOOS="linux"
|
||||||
|
|
||||||
fn_package() { (
|
fn_package() { (
|
||||||
|
@ -18,7 +20,7 @@ fn_package() { (
|
||||||
my_arch="${GOARCH}"
|
my_arch="${GOARCH}"
|
||||||
fi
|
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}"
|
tinygo build -no-debug -o "${my_bin}"
|
||||||
strip "${my_bin}" || true
|
strip "${my_bin}" || true
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,9 @@ set -u
|
||||||
# NOTE
|
# NOTE
|
||||||
# building for macOS on macOS seems to yield smaller sizes
|
# building for macOS on macOS seems to yield smaller sizes
|
||||||
|
|
||||||
# TODO use the git log describe thing
|
my_version="$(
|
||||||
my_version="0.6.0"
|
git describe --tags
|
||||||
|
)"
|
||||||
export GOOS="darwin"
|
export GOOS="darwin"
|
||||||
|
|
||||||
fn_package() { (
|
fn_package() { (
|
||||||
|
@ -18,7 +19,7 @@ fn_package() { (
|
||||||
my_arch="${GOARCH}"
|
my_arch="${GOARCH}"
|
||||||
fi
|
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}"
|
tinygo build -no-debug -o "${my_bin}"
|
||||||
strip "${my_bin}" || true
|
strip "${my_bin}" || true
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,9 @@ set -u
|
||||||
# building for macOS on macOS seems to yield smaller sizes
|
# building for macOS on macOS seems to yield smaller sizes
|
||||||
|
|
||||||
# TODO use the git log describe thing
|
# TODO use the git log describe thing
|
||||||
my_version="0.6.0"
|
my_version="$(
|
||||||
|
git describe --tags
|
||||||
|
)"
|
||||||
export GOOS="windows"
|
export GOOS="windows"
|
||||||
|
|
||||||
fn_package() { (
|
fn_package() { (
|
||||||
|
|
Loading…
Reference in New Issue