提取package.json中的版本号到dist/spa/store/version.txt

This commit is contained in:
fangxiang 2022-09-01 15:44:39 +08:00
parent f45c3ce83a
commit 974cb5f4be
1 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#! /bin/sh
sed "s/.*\"version\": \"\(.*\)\".*/\1/;t;d" ./package.json > dist/spa/store/version.txt