diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ee679f..4e68f63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,8 +5,13 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(PROJECT_URL "https://github.com/taynpg/frelay") + +if(DEFINED RELEASE_MARK) +message(STATUS "Set RELEASE_MARK => ${RELEASE_MARK}.") +set(DEVELOP_MARK "release") +else() set(DEVELOP_MARK "dev") -#set(DEVELOP_MARK "release") +endif() if(NOT DEFINED QT_DEFAULT_MAJOR_VERSION) set(QT_DEFAULT_MAJOR_VERSION 6) diff --git a/Script/qt5142.sh b/Script/qt5142.sh index 6caf266..f3333ae 100755 --- a/Script/qt5142.sh +++ b/Script/qt5142.sh @@ -5,7 +5,7 @@ qt_path="/home/${current_user}/Qt5.14.2/5.14.2/gcc_64" if [ -d "$qt_path" ]; then echo "Found Qt directory: $qt_path" - cmake -B../build -S../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$qt_path" -DQT_DEFAULT_MAJOR_VERSION=5 -DCOMPILE_GUI=ON + cmake -B../build -S../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$qt_path" -DQT_DEFAULT_MAJOR_VERSION=5 -DCOMPILE_GUI=ON -DRELEASE_MARK=ON cmake --build ../build --config Release if [ $? -eq 0 ]; then diff --git a/Script/qt6build-MinGW-Official.bat b/Script/qt6build-MinGW-Official.bat index a1f2cb5..311586f 100644 --- a/Script/qt6build-MinGW-Official.bat +++ b/Script/qt6build-MinGW-Official.bat @@ -2,7 +2,7 @@ set QT_DIR=C:/Qt/6.8.3/mingw_64 cd .. -cmake -G "MinGW Makefiles" -Bbuild-qt6 -S. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=6 -DCOMPILE_GUI=ON +cmake -G "MinGW Makefiles" -Bbuild-qt6 -S. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=6 -DCOMPILE_GUI=ON -DRELEASE_MARK=ON cmake --build build-qt6 --config Release cd build-qt6 cpack diff --git a/Script/qt6build.bat b/Script/qt6build.bat index e208ef8..c3a4bd4 100644 --- a/Script/qt6build.bat +++ b/Script/qt6build.bat @@ -2,7 +2,7 @@ set QT_DIR=C:/Qt/6.8.3 cd .. -cmake -Bbuild-qt6 -S. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=6 -DCOMPILE_GUI=ON +cmake -Bbuild-qt6 -S. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=6 -DCOMPILE_GUI=ON -DRELEASE_MARK=ON cmake --build build-qt6 --config Release cd build-qt6 cpack diff --git a/Script/termuxBuild.sh b/Script/termuxBuild.sh index 4187a04..3757e80 100755 --- a/Script/termuxBuild.sh +++ b/Script/termuxBuild.sh @@ -1,2 +1,2 @@ -cmake -B../build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/data/data/com.termux/files/usr/lib -S../ +cmake -B../build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/data/data/com.termux/files/usr/lib -S../ -DRELEASE_MARK=ON cmake --build ../build --config Release \ No newline at end of file diff --git a/Script/xpbuild.bat b/Script/xpbuild.bat index c78c49a..de32b55 100644 --- a/Script/xpbuild.bat +++ b/Script/xpbuild.bat @@ -5,7 +5,7 @@ set COMPILE_DIR=C:/Qt/Qt5.7.1/Tools/mingw530_32 set PATH=%PATH%;%COMPILE_DIR%/bin cd .. -cmake -Bbuild-xp -S. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=5 -DXP_PLATFORM_SUPPORT=ON -DCOMPILE_GUI=ON +cmake -Bbuild-xp -S. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%QT_DIR% -DQT_DEFAULT_MAJOR_VERSION=5 -DXP_PLATFORM_SUPPORT=ON -DCOMPILE_GUI=ON -DRELEASE_MARK=ON cmake --build build-xp --config Release cd build-xp cpack