This commit is contained in:
2024-10-19 17:18:50 +08:00
parent ef33006410
commit b4178f8632

View File

@@ -17,17 +17,16 @@ web_root=$(build_root)/../web.ems
package_file=$(package_name).tgz package_file=$(package_name).tgz
# 获取当前时间 # 获取当前时间
current_date=$(shell 'date "+%Y-%m-%d %H:%M:%S"') current_date=$(shell `date "+%Y-%m-%d %H:%M:%S"`)
# 文件路径 # 文件路径
vfile=$(extra_dir)/emsVersion vfile=$(extra_dir)/emsVersion
package: package:
# 读取版本信息 # 读取版本信息
version=$(grep "Version:" $(vfile) | awk '{print $3}') version=$(shell `grep "Version:" $(vfile) | awk '{print $3}'`)
# 输出版本信息和更新后的日期 # 输出版本信息和更新后的日期
echo "Version: $version" echo "Version: $(version)"
echo "Release Date: $current_date" echo "Release Date: $(current_date)"
rm -rf $(package_path) rm -rf $(package_path)
mkdir -p $(package_path) mkdir -p $(package_path)