build: rm DESKFLOW_VERSION_URL define
This commit is contained in:
@ -54,10 +54,6 @@ endmacro()
|
||||
|
||||
macro(configure_meta)
|
||||
|
||||
set(DESKFLOW_VERSION_URL
|
||||
"https://api.deskflow.org/version"
|
||||
CACHE STRING "URL to get the latest version")
|
||||
|
||||
set(DESKFLOW_HELP_TEXT
|
||||
"Report a bug"
|
||||
CACHE STRING "Text label for the help menu item")
|
||||
@ -74,14 +70,12 @@ macro(configure_meta)
|
||||
true
|
||||
CACHE BOOL "Show developer thanks message")
|
||||
|
||||
message(VERBOSE "Version URL: ${DESKFLOW_VERSION_URL}")
|
||||
message(VERBOSE "Help text: ${DESKFLOW_HELP_TEXT}")
|
||||
message(VERBOSE "Res dir: ${DESKFLOW_DEPLOY_RES_DIR}")
|
||||
message(VERBOSE "Mac bundle code: ${DESKFLOW_MAC_BUNDLE_CODE}")
|
||||
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.
|
||||
add_definitions(-DDESKFLOW_VERSION_URL="${DESKFLOW_VERSION_URL}")
|
||||
add_definitions(-DDESKFLOW_HELP_TEXT="${DESKFLOW_HELP_TEXT}")
|
||||
|
||||
if(DESKFLOW_SHOW_DEV_THANKS)
|
||||
|
||||
@ -23,10 +23,7 @@ namespace deskflow::gui::env_vars {
|
||||
|
||||
inline QString versionUrl()
|
||||
{
|
||||
if (QString(DESKFLOW_VERSION_URL).isEmpty()) {
|
||||
qFatal("version url is not set");
|
||||
}
|
||||
return qEnvironmentVariable("DESKFLOW_VERSION_URL", DESKFLOW_VERSION_URL);
|
||||
return qEnvironmentVariable("DESKFLOW_VERSION_URL", QStringLiteral("https://api.deskflow.org/version"));
|
||||
}
|
||||
|
||||
} // namespace deskflow::gui::env_vars
|
||||
|
||||
Reference in New Issue
Block a user