From 46dbd66abb391f7cc84d1ea4a7c4e6fa5b143f8c Mon Sep 17 00:00:00 2001 From: Nova Date: Sun, 13 Jul 2025 02:12:21 +0330 Subject: [PATCH] fix version display --- cmake/nkr.cmake | 2 +- script/env_deploy.sh | 2 +- src/ui/mainwindow.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/nkr.cmake b/cmake/nkr.cmake index f2fedb4..e256c2c 100644 --- a/cmake/nkr.cmake +++ b/cmake/nkr.cmake @@ -1,5 +1,5 @@ # Release -option(NKR_VERSION "Nekoray Application Version" "$ENV{INPUT_VERSION}") +set(NKR_VERSION "$ENV{INPUT_VERSION}") add_compile_definitions(NKR_VERSION=\"${NKR_VERSION}\") # Debug diff --git a/script/env_deploy.sh b/script/env_deploy.sh index 74fc2ec..f345c83 100755 --- a/script/env_deploy.sh +++ b/script/env_deploy.sh @@ -1,4 +1,4 @@ SRC_ROOT="$PWD" DEPLOYMENT="$SRC_ROOT/deployment" BUILD="$SRC_ROOT/build" -version_standalone="nekoray-"$INPUT_VERSION +version_standalone="nekoray-"$INPUT_VERSION \ No newline at end of file diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index a4fad4f..a22331b 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -1176,7 +1176,7 @@ void MainWindow::refresh_status(const QString &traffic_update) { if (!NekoGui::dataStore->spmode_vpn && NekoGui::dataStore->spmode_system_proxy) tt << "[" + tr("System Proxy") + "]"; if (NekoGui::dataStore->spmode_vpn && NekoGui::dataStore->spmode_system_proxy) tt << "[Tun+" + tr("System Proxy") + "]"; tt << software_name; - if (!isTray) tt << "(" + QString(NKR_VERSION) + ")"; + if (!isTray) tt << QString(NKR_VERSION); if (!NekoGui::dataStore->active_routing.isEmpty() && NekoGui::dataStore->active_routing != "Default") { tt << "[" + NekoGui::dataStore->active_routing + "]"; }