提交 8ccba353 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

add git commit hash to version

上级 c8863150
......@@ -9,10 +9,12 @@ SRC_VERSION_TS_FILE='src/version.ts'
}
VERSION=$(npx pkg-jq -r .version)
GIT_COMMIT_HASH=$(git rev-parse HEAD)
cat <<_SRC_ > ${SRC_VERSION_TS_FILE}
/**
* This file was auto generated from scripts/generate-version.sh
*/
export const VERSION: string = '${VERSION}'
export const GIT_COMMIT_HASH: string = '${GIT_COMMIT_HASH}'
_SRC_
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册