Skip to content

Commit 52d6016

Browse files
committed
chore(build): fix build version missing
fix build version missing fix #16 Signed-off-by: mritd <[email protected]>
1 parent fa8c729 commit 52d6016

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.cross_compile.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ DIST_PREFIX="gitflow-toolkit"
66
TARGET_DIR="dist"
77
PLATFORMS="darwin/amd64 darwin/arm64 linux/386 linux/amd64 linux/arm linux/arm64"
88

9+
BUILD_VERSION=$(cat version)
10+
BUILD_DATE=$(date "+%F %T")
11+
COMMIT_SHA1=$(git rev-parse HEAD)
12+
913
rm -rf ${TARGET_DIR}
1014
mkdir ${TARGET_DIR}
1115

0 commit comments

Comments
 (0)