VERSION update to 1.3.0
This commit is contained in:
parent
c24f51d495
commit
1845e6113e
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue