VERSION update to 1.3.0

This commit is contained in:
ubuntu1804 2025-11-11 17:00:01 +08:00
parent c24f51d495
commit 1845e6113e
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(ScreenLockDetector VERSION 1.0.0 LANGUAGES C CXX)
project(ScreenLockDetector VERSION 1.3.0 LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

View File

@ -12,7 +12,13 @@ NC='\033[0m' # No Color
# 配置变量
APP_NAME="ScreenLockDetector"
PACKAGE_NAME="ScreenLockDetector"
VERSION="1.2.0"
# 从 CMakeLists.txt 中提取版本号
VERSION=$(grep -oP '(?<=project\(ScreenLockDetector VERSION )[0-9.]+' CMakeLists.txt)
if [ -z "$VERSION" ]; then
echo -e "${RED}错误: 无法从 CMakeLists.txt 中提取版本号${NC}"
exit 1
fi
echo -e "${GREEN}✓ 从 CMakeLists.txt 读取版本号: ${VERSION}${NC}"
ARCH="amd64"
QT_DIR="$HOME/sdk/qt-5.15.2"
LINUXDEPLOYQT="${LINUXDEPLOYQT:-$HOME/tools/sunvpack-py/bin/linuxdeployqt}"