build: rm DESKFLOW_WEBSITE_URL define

This commit is contained in:
sithlord48
2024-10-28 17:38:55 -04:00
committed by Nick Bolton
parent 97ea628c14
commit e865397f12
3 changed files with 2 additions and 8 deletions

View File

@ -54,10 +54,6 @@ endmacro()
macro(configure_meta) macro(configure_meta)
set(DESKFLOW_WEBSITE_URL
"https://deskflow.org"
CACHE STRING "URL of the app website")
set(DESKFLOW_VERSION_URL set(DESKFLOW_VERSION_URL
"https://api.deskflow.org/version" "https://api.deskflow.org/version"
CACHE STRING "URL to get the latest version") CACHE STRING "URL to get the latest version")
@ -78,7 +74,6 @@ macro(configure_meta)
true true
CACHE BOOL "Show developer thanks message") CACHE BOOL "Show developer thanks message")
message(VERBOSE "Website URL: ${DESKFLOW_WEBSITE_URL}")
message(VERBOSE "Version URL: ${DESKFLOW_VERSION_URL}") message(VERBOSE "Version URL: ${DESKFLOW_VERSION_URL}")
message(VERBOSE "Help text: ${DESKFLOW_HELP_TEXT}") message(VERBOSE "Help text: ${DESKFLOW_HELP_TEXT}")
message(VERBOSE "Res dir: ${DESKFLOW_DEPLOY_RES_DIR}") message(VERBOSE "Res dir: ${DESKFLOW_DEPLOY_RES_DIR}")
@ -86,7 +81,6 @@ macro(configure_meta)
message(VERBOSE "Show dev thanks: ${DESKFLOW_SHOW_DEV_THANKS}") message(VERBOSE "Show dev thanks: ${DESKFLOW_SHOW_DEV_THANKS}")
# TODO: We need to move this to configure_file() in the future, which is much cleaner. # TODO: We need to move this to configure_file() in the future, which is much cleaner.
add_definitions(-DDESKFLOW_WEBSITE_URL="${DESKFLOW_WEBSITE_URL}")
add_definitions(-DDESKFLOW_VERSION_URL="${DESKFLOW_VERSION_URL}") add_definitions(-DDESKFLOW_VERSION_URL="${DESKFLOW_VERSION_URL}")
add_definitions(-DDESKFLOW_HELP_TEXT="${DESKFLOW_HELP_TEXT}") add_definitions(-DDESKFLOW_HELP_TEXT="${DESKFLOW_HELP_TEXT}")

View File

@ -4,7 +4,7 @@ pkgname=deskflow
pkgver=@DESKFLOW_VERSION@ pkgver=@DESKFLOW_VERSION@
pkgrel=1 pkgrel=1
pkgdesc="Mouse and keyboard sharing utility" pkgdesc="Mouse and keyboard sharing utility"
url='@DESKFLOW_WEBSITE_URL@' url='https://deskflow.org'
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
license=('GPL-2.0-only') license=('GPL-2.0-only')
depends=( depends=(

View File

@ -29,7 +29,7 @@ const auto kOrgDomain = QStringLiteral("deskflow.org");
const auto kLinkDownload = R"(<a href="%1" style="color: %2">Download now</a>)"; const auto kLinkDownload = R"(<a href="%1" style="color: %2">Download now</a>)";
const auto kUrlSourceQuery = "source=gui"; const auto kUrlSourceQuery = "source=gui";
const auto kUrlApp = DESKFLOW_WEBSITE_URL; const auto kUrlApp = QStringLiteral("https://deskflow.org");
const auto kUrlHelp = QString("%1/help?%2").arg(kUrlApp, kUrlSourceQuery); const auto kUrlHelp = QString("%1/help?%2").arg(kUrlApp, kUrlSourceQuery);
const auto kUrlDownload = QString("%1/download?%2").arg(kUrlApp, kUrlSourceQuery); const auto kUrlDownload = QString("%1/download?%2").arg(kUrlApp, kUrlSourceQuery);